2004-09-02 15:41:37 +00:00
|
|
|
|
|
|
|
|
// Copyright Aleksey Gurtovoy 2000-2004
|
2002-09-16 19:25:33 +00:00
|
|
|
//
|
2004-09-02 15:41:37 +00:00
|
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
|
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
2004-07-26 00:32:12 +00:00
|
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
2004-09-02 15:41:37 +00:00
|
|
|
//
|
|
|
|
|
// See http://www.boost.org/libs/mpl for documentation.
|
2002-09-16 19:25:33 +00:00
|
|
|
|
2008-10-10 09:21:07 +00:00
|
|
|
// $Id$
|
2004-09-02 15:41:37 +00:00
|
|
|
// $Date$
|
|
|
|
|
// $Revision$
|
2002-09-16 19:25:33 +00:00
|
|
|
|
2004-09-02 15:41:37 +00:00
|
|
|
#include <boost/mpl/logical.hpp>
|
|
|
|
|
#include <boost/mpl/bool.hpp>
|
2014-09-19 18:55:00 -06:00
|
|
|
#include <boost/mpl/aux_/test.hpp>
|
2002-09-16 19:25:33 +00:00
|
|
|
|
2004-09-02 15:41:37 +00:00
|
|
|
struct unknown;
|
2002-09-16 19:25:33 +00:00
|
|
|
|
2004-09-02 15:41:37 +00:00
|
|
|
using mpl::true_;
|
|
|
|
|
using mpl::false_;
|
|
|
|
|
|
|
|
|
|
MPL_TEST_CASE()
|
2002-09-16 19:25:33 +00:00
|
|
|
{
|
2004-09-02 15:41:37 +00:00
|
|
|
MPL_ASSERT(( mpl::and_< true_,true_ > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::and_< false_,true_ > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::and_< true_,false_ > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::and_< false_,false_ > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::and_< false_,unknown > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::and_< false_,unknown,unknown > ));
|
|
|
|
|
|
|
|
|
|
MPL_ASSERT(( mpl::or_< true_,true_ > ));
|
|
|
|
|
MPL_ASSERT(( mpl::or_< false_,true_ > ));
|
|
|
|
|
MPL_ASSERT(( mpl::or_< true_,false_ > ));
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::or_< false_,false_ > ));
|
|
|
|
|
MPL_ASSERT(( mpl::or_< true_,unknown > ));
|
|
|
|
|
MPL_ASSERT(( mpl::or_< true_,unknown,unknown > ));
|
|
|
|
|
|
|
|
|
|
MPL_ASSERT_NOT(( mpl::not_< true_ > ));
|
|
|
|
|
MPL_ASSERT(( mpl::not_< false_ > ));
|
2002-09-16 19:25:33 +00:00
|
|
|
}
|