In GCC 4.4.x, you only need #include <unordered_map> and compile this line:
g++ -std=c++0x source.cxx
Additional Information on C ++ 0x Support in GCC .
change your problem
You should do std::make_pair<char, bool>(*s, true) when pasting.
In addition, your code will only insert one character (dereferencing via *s ). Do you intend to use a single char key for the key, or do you want to save strings?
birryree
source share