diff --git a/include/boost/fusion/tuple/detail/tuple.hpp b/include/boost/fusion/tuple/detail/tuple.hpp index f9270687..9ed91121 100644 --- a/include/boost/fusion/tuple/detail/tuple.hpp +++ b/include/boost/fusion/tuple/detail/tuple.hpp @@ -52,7 +52,7 @@ namespace boost { namespace fusion : base_type() {} BOOST_FUSION_GPU_ENABLED tuple(tuple const& rhs) - : base_type(rhs) {} + : base_type(static_cast(rhs)) {} template BOOST_FUSION_GPU_ENABLED @@ -72,7 +72,7 @@ namespace boost { namespace fusion BOOST_FUSION_GPU_ENABLED tuple& operator=(tuple const& rhs) { - base_type::operator=(rhs); + base_type::operator=(static_cast(rhs)); return *this; } diff --git a/test/Jamfile b/test/Jamfile index 3c782619..33701cb6 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -122,6 +122,7 @@ project [ run sequence/tuple_make.cpp : : : : ] [ run sequence/tuple_misc.cpp : : : : ] [ run sequence/tuple_mutate.cpp : : : : ] + [ run sequence/tuple_nest.cpp : : : : ] [ run sequence/tuple_hash.cpp : : : : ] [ run sequence/tuple_tie.cpp : : : : ] [ run sequence/transform_view.cpp : : : : ] diff --git a/test/sequence/tuple_nest.cpp b/test/sequence/tuple_nest.cpp new file mode 100644 index 00000000..1d263da4 --- /dev/null +++ b/test/sequence/tuple_nest.cpp @@ -0,0 +1,19 @@ +/*============================================================================= + Copyright (C) 2015 Kohei Takahshi + + Distributed under the Boost Software License, Version 1.0. (See accompanying + file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +==============================================================================*/ +#include +#include + +#define FUSION_SEQUENCE tuple +#include "nest.hpp" + +int +main() +{ + test(); + return boost::report_errors(); +} +