// Copyright 2017, 2020 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include template struct F1 {}; template struct F2 {}; template struct F3 {}; template using G1 = F1; template using G2 = F2; template using G3 = F3; int main() { using namespace boost::mp11; #if !BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, < 1900 ) BOOST_TEST_TRAIT_TRUE((std::is_same::fn, void>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F1>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F1>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F2>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F2>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F3>>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F3>>>)); #endif using QF1 = mp_quote; using QF2 = mp_quote; using QF3 = mp_quote; using QG1 = mp_quote; using QG2 = mp_quote; using QG3 = mp_quote; BOOST_TEST_TRAIT_TRUE((std::is_same::fn, void>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F1>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F1>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F2>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F2>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F3>>>)); BOOST_TEST_TRAIT_TRUE((std::is_same::fn, F3>>>)); // return boost::report_errors(); }