-
Couldn't load subscription status.
- Fork 71
Open
Description
Regressed in 9272805
#include <boost/variant.hpp>
struct Nil {};
typedef boost::variant<
Nil
, double
>
Atom;
typedef boost::variant<
Nil
#if 1
, boost::recursive_wrapper<Atom>
#else
, Atom
#endif
>
Base;
int main()
{
Atom atom;
Base base = atom;
}Removing these specializations fixes the compilation
variant/include/boost/variant/recursive_wrapper_fwd.hpp
Lines 60 to 67 in d2fdf23
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, U > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, const U > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, U& > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, const U& > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, recursive_wrapper<U> > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, const recursive_wrapper<U> > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, recursive_wrapper<U>& > : boost::false_type{}; | |
| template <class T, class U> struct is_constructible<recursive_wrapper<T>, const recursive_wrapper<U>& > : boost::false_type{}; |
Gjacquenot
Metadata
Metadata
Assignees
Labels
No labels