|
Boost Users : |
Subject: Re: [Boost-users] [Any] Operator ==
From: Nevin Liber (nevin_at_[hidden])
Date: 2010-11-01 11:16:08
On 1 November 2010 08:57, Hossein Haeri <powerprogman_at_[hidden]> wrote:
> Is there any way to implement an operator == (and perhaps also operator !=) for objects of type boost::any so that different instances are always != and an instance is always only == to itself -- regardless of the respective values?
> In case you're wondering why I'd interested in such operators, the answer is that I'm thinking of storing objects of type boost::any in an unordered_map.
Wouldn't this just be the address of the object (which isn't
particularly useable as a key in a map)?
-- Nevin ":-)" Liber <mailto:nevin_at_[hidden]> (847) 691-1404
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