Boost logo

Boost :

Subject: [boost] [variant] Constructible/assignable from anything
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2011-09-05 04:34:44


Boost variant has a constructor and an assignment operator that would
take just anything. If it cannot be converted to any of its bounded
types, it will result in an error within variant's internals. This,
mixed with conversion operators, interferes with overload resolution
(code that reproduces the issue attached). Would SFINAE'ing out the
non-candidate constructors (and assignments) fix this?

Agustín K-ballo Bergé.-
http://talesofcpp.blogspot.com




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