Wow, that helped.
Thanks a lot vmpstr!
I would never had guessed that an extra "typename" would have solved this. Thought that since i put "template <typename T>" in the signature the compiler would be aware of everything concerning "T"'s. But i guess that the "typename map<T, set<string> >::iterator" type is kind of complex.. :)
Thanks for the help and...
User Profile
Collapse
-
std::set within std::map problem
Hi,
i'm trying to make a calendar but get stuck at the following compiler error.
Here follows the snippet of code which i think is relevant to the problem. (The code in full can be found here Nopaste - calendar.cpp and Nopaste - calendar.h)
...Code:template <typename T> bool Calendar<T>::add_event( std::string event, int y, int m, int d) { if( (y < 1858) ||
No activity results to display
Show More
Leave a comment: