• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Copyright (c) 2016 Lee Clagett
3     Copyright (c) 2018 Kohei Takahashi
4     Distributed under the Boost Software License, Version 1.0. (See accompanying
5     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 
8 #include <boost/config.hpp>
9 
10 #ifdef BOOST_NO_CXX11_VARIADIC_TEMPLATES
11 #   error "does not meet requirements"
12 #endif
13 
14 #include <boost/fusion/support/detail/and.hpp>
15 #include <boost/mpl/bool.hpp>
16 #include <boost/mpl/assert.hpp>
17 
18 using namespace boost;
19 using namespace boost::fusion::detail;
20 
21 BOOST_MPL_ASSERT((and_<>));
22 BOOST_MPL_ASSERT_NOT((and_<false_type>));
23 BOOST_MPL_ASSERT((and_<true_type>));
24 BOOST_MPL_ASSERT_NOT((and_<true_type, false_type>));
25 BOOST_MPL_ASSERT((and_<true_type, true_type>));
26 BOOST_MPL_ASSERT_NOT((and_<true_type, true_type, false_type>));
27 BOOST_MPL_ASSERT((and_<true_type, true_type, true_type>));
28 BOOST_MPL_ASSERT((and_<true_type, mpl::true_>));
29