Boost logo

Boost :

Subject: [boost] [any] Equality
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-01-14 06:42:47


I noticed that boost::any does not have an operator== for comparing two
boost::any objects. Is this a deliberate choice?

Currently I have to (1) compare the types, and (2) convert the values
with any_cast (and probably catch bad_any_cast exceptions) and compare
them.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk