// Copyright Abel Sinkovics (abel@sinkovics.hu) 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #define BOOST_TEST_MODULE define_error #include #include #include #include namespace { BOOST_METAPARSE_DEFINE_ERROR(test_error, "test error"); } BOOST_AUTO_TEST_CASE(test_define_error) { using boost::is_same; BOOST_MPL_ASSERT((is_same)); BOOST_CHECK_EQUAL("test error", test_error::get_value()); }