• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 //  Copyright 2017 Peter Dimov.
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 //
6 // See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt
8 
9 
10 #include <boost/mp11/utility.hpp>
11 #include <boost/core/lightweight_test_trait.hpp>
12 #include <type_traits>
13 
main()14 int main()
15 {
16     using boost::mp11::mp_if;
17     using boost::mp11::mp_valid;
18 
19     BOOST_TEST_TRAIT_FALSE((mp_valid<mp_if, std::false_type, void>));
20     BOOST_TEST_TRAIT_TRUE((mp_valid<mp_if, std::false_type, void, void>));
21     BOOST_TEST_TRAIT_FALSE((mp_valid<mp_if, std::false_type, void, void, void>));
22 
23     return boost::report_errors();
24 }
25