I accidentally wrote
std::set<string> keys;
as:
std:set<string> keys;
but weirdly enough, Visual Studio 2013 still compiles.
Why does this happen?
Actually keys
is not only defined, but later used as a set of strings, such as
if(keys.find(keystr)==keys.end()){
keys.insert(keystr);
toret.push_back(tempv);
}
See Question&Answers more detail:os