Ticket #2487: test_and_seq.cpp

File test_and_seq.cpp, 1.3 KB (added by vicente.botet@…, 14 years ago)

and_seq test

Line 
1/* Copyright 2008 Vicente J. Botet Escriba
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * http://www.boost.org/LICENSE_1_0.txt)
5 *
6 * See http://www.boost.org/libs/luid for library home page.
7 */
8
9#include <boost/mpl_ext/and_seq.hpp>
10#include <boost/static_assert.hpp>
11#include <boost/mpl/vector.hpp>
12#include <boost/mpl/not.hpp>
13#include <boost/mpl/bool.hpp>
14
15
16namespace bldsl = ::boost::mpl_ext;
17using namespace boost::mpl;
18struct unknown;
19
20//____________________________________________________________________________//
21
22BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_> >::value));
23BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_, true_> >::value));
24BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_, true_, true_, true_, true_> >::value));
25BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<true_, false_> > >::value));
26BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, false_> > >::value));
27BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, true_> > >::value));
28BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, unknown, false_> > >::value));
29
30
31
32//static void test(void)
33//{
34//}
35
36//____________________________________________________________________________//
37