|
Boost : |
Subject: Re: [boost] [variant] Constructible/assignable from anything
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2011-09-05 14:14:56
On 05/09/2011 6:29, Mathias Gaunard wrote:
> 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?
>
Done, https://svn.boost.org/trac/boost/ticket/5871.
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