]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/fusion/test/support/and.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / fusion / test / support / and.cpp
1 /*=============================================================================
2 Copyright (c) 2016 Lee Clagett
3 Distributed under the Boost Software License, Version 1.0. (See accompanying
4 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 ==============================================================================*/
6
7 #include <boost/config.hpp>
8
9 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
10
11 #include <boost/detail/lightweight_test.hpp>
12 #include <boost/fusion/support/detail/and.hpp>
13 #include <boost/mpl/bool.hpp>
14 #include <boost/type_traits/integral_constant.hpp>
15
16 int main() {
17 using namespace boost;
18 using namespace boost::fusion::detail;
19
20 BOOST_TEST((and_<>::value));
21 BOOST_TEST(!(and_<false_type>::value));
22 BOOST_TEST((and_<true_type>::value));
23 BOOST_TEST(!(and_<true_type, false_type>::value));
24 BOOST_TEST((and_<true_type, true_type>::value));
25 BOOST_TEST(!(and_<true_type, true_type, false_type>::value));
26 BOOST_TEST((and_<true_type, true_type, true_type>::value));
27 BOOST_TEST((and_<true_type, mpl::true_>::value));
28
29 return boost::report_errors();
30 }
31
32 #endif
33