STL: Map of maps possible, but no multi-map of maps? Workarounds?

M

Marcus

It's possible to do this:

map<double, map <string, int> > foo;

but not this or any other nested variant using multimap:

multimap<double, map <string, int> > foo;

Any known (or unknown) workarounds?

Thanks
Marcus
 
N

Neelesh Bodas

Marcus said:
It's possible to do this:

map<double, map <string, int> > foo;

but not this or any other nested variant using multimap:

multimap<double, map <string, int> > foo;

Works with comeau online 4.3.3, also with g++ 3.4.2
 
M

Marcus

hmmm... you're right, i must have a bug somewhere. glad to know it
works.

thanks for checking that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top