[Boost-bugs] [Boost C++ Libraries] #8721: Boost.Variant and Boost.Fusion incompatibility

Subject: [Boost-bugs] [Boost C++ Libraries] #8721: Boost.Variant and Boost.Fusion incompatibility
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-21 16:03:34


#8721: Boost.Variant and Boost.Fusion incompatibility
-------------------------------------+---------------------
 Reporter: David Sankel <camior@…> | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: |
-------------------------------------+---------------------
 {{{
 #include <boost/variant.hpp>
 #include <boost/fusion/include/vector.hpp>

 struct emptyList {};

 typedef boost::make_recursive_variant
   < emptyList
   , boost::fusion::vector
       < int
       , boost::recursive_variant_
>
>::type IntList;

 const emptyList el = emptyList();
 const IntList nil( el );

 IntList cons( int head, IntList tail )
 {
   return IntList( boost::fusion::vector<int, IntList>( head, tail ) );
 }

 }}}

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