• Advertisement
Sign in to follow this  

STL map mapping a map

This topic is 4189 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to make a map that maps unsigned int to other maps what I want to do is this : map<unsigned int, map<unsigned int, Unit*>> blockUnits; but I am getting : error C2947 : expection '>' to terminate template-argument-list, found '>>' how should I do ?

Share this post


Link to post
Share on other sites
Advertisement
Put a space between the two > characters, otherwise the compiler will think you're trying to use operator >>

Share this post


Link to post
Share on other sites
Quote:
Karma++ for you.


Thanks... but my rating seems to have gone from 1161 to 1154. And you're not in the list of users who rated me positively... :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement