By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,804 Members | 1,681 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,804 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Dec 9 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Marcus wrote:
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

Dec 9 '05 #2

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

thanks for checking that.

Dec 9 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.