/*============================================================================= Copyright (c) 2014 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 #include #include #include #include #include #include #include #include #if !defined(BOOST_NO_CXX11_HDR_TUPLE) && \ !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) #include #include #endif template void check_(LHS const&, RHS const&) { BOOST_MPL_ASSERT((boost::is_same)); } template void check() { check_( boost::fusion::result_of::size::type::value , boost::fusion::result_of::size::value ); } void test() { { check >(); check >(); check >(); check >(); } { check >(); check >(); check >(); check >(); } { check >(); check >(); check >(); check >(); } { check >(); check >(); check >(); check >(); } { check >(); check > >(); check , boost::fusion::pair > >(); check , boost::fusion::pair , boost::fusion::pair > >(); } { check >(); check >(); check >(); } { check >(); check >(); check >(); check >(); } #if !defined(BOOST_NO_CXX11_HDR_TUPLE) && \ !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) { check >(); check >(); check >(); check >(); } #endif }