Cant insert to std::map (G++)
问题 I have a following trouble: struct ServerPP { std::string name; int id; int expires; }; std::map<std::string, std::set<ServerPP>> RemindTable; int test(std::string email, ServerPP serv) { RemindTable[email].insert(serv); // error when compile in this row below } Error in g++: In file included from /usr/include/c++/4.4/string:50, from /usr/include/c++/4.4/bits/locale_classes.h:42, from /usr/include/c++/4.4/bits/ios_base.h:43, from /usr/include/c++/4.4/ios:43, from /usr/include/c++/4.4/istream