Could one use boost::any as a key?
Il 23/02/2010 19:30, Igor R ha scritto:
Mmm... that's good! :-)>> 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
Thanks a lot, Igor!
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users