[Boost-bugs] [Boost C++ Libraries] #12155: variant does not support a class derived from variant as one of its types

Subject: [Boost-bugs] [Boost C++ Libraries] #12155: variant does not support a class derived from variant as one of its types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-26 10:34:53


#12155: variant does not support a class derived from variant as one of its types
---------------------------------+---------------------
 Reporter: Tobias Reh <treh@…> | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
---------------------------------+---------------------
 variant does not support a class derived from variant as one of its types.
 See the following example code:

 {{{#!c++
 struct A {};
 struct B {};
 struct C {};

 struct AB : boost::variant<A, B> {};

 using AB_C = boost::variant<AB, C>;

 void foo() {
     AB ab;
     AB_C ab_c{ab}; // member function convert_construct is abiguous
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12155>
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:20 UTC