// Copyright 2017 Peter Dimov. // // 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 using boost::mp11::mp_transform; using boost::mp11::mp_list; using boost::mp11::mp_valid; template using F = void; template using transform = mp_transform; int main() { BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); #if !BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, <= 1800 ) BOOST_TEST_TRAIT_TRUE((mp_valid>)); #endif BOOST_TEST_TRAIT_FALSE((mp_valid, mp_list>)); BOOST_TEST_TRAIT_FALSE((mp_valid, mp_list<>, mp_list>)); BOOST_TEST_TRAIT_FALSE((mp_valid, mp_list<>, mp_list<>, mp_list>)); BOOST_TEST_TRAIT_FALSE((mp_valid, mp_list<>, mp_list<>, mp_list<>, mp_list>)); return boost::report_errors(); }