From bf4ddf861199096a6e3889b2f39a40a170af151f Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Mon, 7 Mar 2016 22:35:58 +0900 Subject: [PATCH] Add tests for issue 11932. https://svn.boost.org/trac/boost/ticket/11932 --- test/Jamfile | 1 + test/sequence/issue11932.cpp | 46 ++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 test/sequence/issue11932.cpp diff --git a/test/Jamfile b/test/Jamfile index e8d17be0..93f8914c 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -79,6 +79,7 @@ project [ run sequence/hash.cpp ] [ run sequence/io.cpp ] [ run sequence/iterator_range.cpp ] + [ compile sequence/issue11932.cpp ] [ run sequence/joint_view.cpp ] [ run sequence/list_comparison.cpp ] [ run sequence/list_construction.cpp ] diff --git a/test/sequence/issue11932.cpp b/test/sequence/issue11932.cpp new file mode 100644 index 00000000..aa9ecec6 --- /dev/null +++ b/test/sequence/issue11932.cpp @@ -0,0 +1,46 @@ +/*============================================================================= + Copyright (c) 2016 Kohei Takahashi + + 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 +#include +#include + +#include +#include + +#ifndef BOOST_NO_CXX11_HDR_TUPLE +#include +#include +#endif + +#include +#include + +#include +#include + +struct left +{ + template struct apply { typedef L type; }; +}; + +template struct test +{ + typedef typename boost::mpl::transform::type type; +}; + +using namespace boost::fusion; +BOOST_MPL_ASSERT((boost::is_same >::type, boost::fusion::vector<> >)); +BOOST_MPL_ASSERT((boost::is_same >::type, boost::fusion::list<> >)); +BOOST_MPL_ASSERT((boost::is_same >::type, boost::fusion::deque<> >)); + +BOOST_MPL_ASSERT((boost::is_same >::type, boost::tuples::tuple<> >)); + +#ifndef BOOST_NO_CXX11_HDR_TUPLE +BOOST_MPL_ASSERT((boost::is_same >::type, std::tuple<> >)); +#endif