Could one use boost::any as a key?

2010/2/23 Michele Caini <michele.caini@gmail.com>
Il 23/02/2010 19:30, Igor R ha scritto:
>> I'm looking for a map that has no matter about key types, so I can use
>> such map storing int indexed objects and also, i.e., char indexed objects, as all-in-one container.
>
> Maybe something like std::map<boost::variant<int, char>, std::string>
> can be helpful?
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Mmm... that's good! :-)
Thanks a lot, Igor!
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users