User Profile

Collapse

Profile Sidebar

Collapse
peal
peal
Last Activity: Dec 16 '08, 01:53 PM
Joined: Dec 3 '08
Location: Sweden
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • peal
    replied to std::set within std::map problem
    in C
    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...
    See more | Go to post

    Leave a comment:


  • peal
    started a topic std::set within std::map problem
    in C

    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) ||
    ...
    See more | Go to post
No activity results to display
Show More
Working...