Subject: Re: [boost] [variant] Constructible/assignable from anything
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-09-05 05:29:12
On 09/05/2011 10:34 AM, Agustín K-ballo Bergé wrote:
> 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?
Yes it would.
File a bug?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk