// Copyright 2015, 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 using boost::mp11::mp_invoke_q; using boost::mp11::mp_quote; using boost::mp11::mp_quote_trait; using boost::mp11::mp_valid; using boost::mp11::mp_identity; using boost::mp11::mp_identity_t; 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)); using Qi = mp_quote; BOOST_TEST_TRAIT_FALSE((mp_valid)); BOOST_TEST_TRAIT_TRUE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); using Qt = mp_quote_trait; #if !BOOST_MP11_WORKAROUND( BOOST_MP11_MSVC, <= 1800 ) BOOST_TEST_TRAIT_FALSE((mp_valid)); #endif BOOST_TEST_TRAIT_TRUE((mp_valid)); BOOST_TEST_TRAIT_FALSE((mp_valid)); return boost::report_errors(); }