Jump to content
  • Advertisement
Sign in to follow this  
crucifer

STL map mapping a map

This topic is 4399 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!