// 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 #if BOOST_MP11_WORKAROUND( BOOST_MP11_GCC, < 40800 ) # pragma GCC diagnostic ignored "-Wsign-compare" #endif #include #include #include #include int main() { using boost::mp11::mp_max; using boost::mp11::mp_int; using boost::mp11::mp_size_t; BOOST_TEST_TRAIT_TRUE((std::is_same>, mp_int<1>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, mp_int<1>, mp_int<2>, mp_int<3>>, mp_int<3>>)); BOOST_TEST_TRAIT_TRUE((std::is_same, mp_size_t<1>, mp_int<-2>, mp_size_t<2>>, mp_size_t<2>>)); return boost::report_errors(); }