Fix hard compilation error with nested fusion::cons.

This commit is contained in:
Louis Dionne
2014-11-11 10:23:36 -05:00
parent b637f2569b
commit d93e675408
2 changed files with 8 additions and 5 deletions

View File

@ -27,7 +27,6 @@
#include <boost/fusion/support/sequence_base.hpp>
#include <boost/mpl/int.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/mpl/or.hpp>
namespace boost { namespace fusion
{
@ -75,10 +74,7 @@ namespace boost { namespace fusion
cons(
Sequence const& seq
, typename boost::disable_if<
mpl::or_<
is_convertible<Sequence, cons> // use copy ctor instead
, is_convertible<Sequence, Car> // use copy to car instead
>
is_convertible<Sequence, Car> // use copy to car instead
>::type* /*dummy*/ = 0
)
: car(*fusion::begin(seq))