mdelfede Messages: 1310 Registered: September 2007
Ultimate Contributor
mirek wrote on Tue, 26 February 2013 20:02
Today I have encountered pretty tricky issue:
VectorMap<String, String> h;
const Index<String>& x = h.GetKeys();
This innocent looking code is broken in a very tricky way: GetKeys returns a reference to Vector<String> which is then picked by Index constructor to perform a conversion to Index<String> (in reality, there should have been h.GetIndex() instead...).
Because I have spent some bad amount of time trying to figure out what is happening........
Mirek
Eh... I stumbled on this error some time ago, and it took me a whole day to figure it out
Good idea to fix it