[Boost-bugs] [Boost C++ Libraries] #5871: variant constructible/assignable from anything

Subject: [Boost-bugs] [Boost C++ Libraries] #5871: variant constructible/assignable from anything
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-05 18:12:26


#5871: variant constructible/assignable from anything
-----------------------------------+----------------------------------------
 Reporter: kaballo86@… | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 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). SFINAE'ing out the non-candidate
 constructors (and assignments) would fix this.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5871>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC