Boost logo

Boost Users :

Subject: Re: [Boost-users] Multiple key types map
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2010-02-26 11:47:51


Igor R wrote:
>>>>> Maybe something like std::map<boost::variant<int, char>, std::string>
>>>>> can be helpful?

Igore Dmit. wrote:
>>Could one use boost::any as a key?

There is no any ordering defined for boost::any objects, so no, it is not possible to use it as Key in ordered associative containers.

Gevorg


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net