Boost C++ Libraries: Ticket #8721: Boost.Variant and Boost.Fusion incompatibility https://svn.boost.org/trac10/ticket/8721 <pre class="wiki">#include &lt;boost/variant.hpp&gt; #include &lt;boost/fusion/include/vector.hpp&gt; struct emptyList {}; typedef boost::make_recursive_variant &lt; emptyList , boost::fusion::vector &lt; int , boost::recursive_variant_ &gt; &gt;::type IntList; const emptyList el = emptyList(); const IntList nil( el ); IntList cons( int head, IntList tail ) { return IntList( boost::fusion::vector&lt;int, IntList&gt;( head, tail ) ); } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8721 Trac 1.4.3 David Sankel <camior@…> Fri, 21 Jun 2013 16:06:49 GMT <link>https://svn.boost.org/trac10/ticket/8721#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8721#comment:1</guid> <description> <p> I have a suspicion that the problem may have something to do with BOOST_VARIANT_RECURSIVE_VARIANT_MAX_ARITY. </p> <p> I've confirmed the issue on both clang cvs and gcc 4.8.1. </p> </description> <category>Ticket</category> </item> <item> <author>David Sankel <camior@…></author> <pubDate>Fri, 21 Jun 2013 16:11:52 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8721#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8721#comment:2</guid> <description> <p> Using std::tuple (From gcc 4.8.1) or boost::tuple instead also produces errors. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Mon, 20 Sep 2021 17:30:39 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8721#comment:3 https://svn.boost.org/trac10/ticket/8721#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> The example now works on modern versions of Boost in C++11 and more modern C++ Standards: <a class="ext-link" href="https://godbolt.org/z/4o1acx1o8"><span class="icon">​</span>https://godbolt.org/z/4o1acx1o8</a> </p> <p> Added a test case to make sure that the code keeps compiling: <a class="ext-link" href="https://github.com/boostorg/variant/commit/445d790b2fe81b1b3d413d2fd464fe78712d535f"><span class="icon">​</span>https://github.com/boostorg/variant/commit/445d790b2fe81b1b3d413d2fd464fe78712d535f</a> </p> <p> I'm not planning to work on C++03 support for that case, but would be happy to review Pull Request. </p> Ticket