Ticket #2487: test_or_seq.cpp

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

or_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/or_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::or_seq<vector<true_> >::value));
23BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, unknown> >::value));
24BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, unknown, unknown> >::value));
25BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, true_> >::value));
26BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, false_> >::value));
27BOOST_STATIC_ASSERT((bldsl::or_seq<vector<false_, true_> >::value));
28BOOST_STATIC_ASSERT((bldsl::or_seq<vector<false_, false_, false_, true_> >::value));
29BOOST_STATIC_ASSERT((not_<bldsl::or_seq<vector<false_, false_> > >::value));
30BOOST_STATIC_ASSERT((not_<bldsl::or_seq<vector<false_, false_, false_> > >::value));
31
32
33
34//static void test(void)
35//{
36//}
37
38//____________________________________________________________________________//
39