// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015. // 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 "test_case.hpp" namespace { struct returns_first { typedef returns_first type; template struct apply { typedef A type; }; }; struct returns_second { typedef returns_second type; template struct apply { typedef B type; }; }; } BOOST_METAPARSE_TEST_CASE(swap) { using boost::metaparse::v1::swap; using boost::is_same; BOOST_MPL_ASSERT(( is_same::apply::type> )); BOOST_MPL_ASSERT(( is_same::apply::type> )); }