f



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

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

0
mcdesigns (37)
12/9/2005 5:58:43 AM
comp.lang.c++ 49423 articles. 6 followers. Post Follow

2 Replies
964 Views

Similar Articles

[PageSpeed] 25

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

0
12/9/2005 6:05:20 AM
hmmm... you're right, i must have a bug somewhere. glad to know it
works.

thanks for checking that.

0
mcdesigns (37)
12/9/2005 6:34:03 AM
Reply: