1// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
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#include <boost/metaparse/error/unpaired.hpp>
7
8#include <boost/mpl/assert.hpp>
9
10#include <boost/type_traits/is_same.hpp>
11
12#include "test_case.hpp"
13
14namespace
15{
16 struct some_tmp_value
17 {
18 typedef some_tmp_value type;
19 };
20}
21
22BOOST_METAPARSE_TEST_CASE(unpaired)
23{
24 using boost::metaparse::error::unpaired;
25
26 using boost::is_same;
27
28 // test_unpaired_currying
29 BOOST_MPL_ASSERT((
30 is_same<
31 unpaired<1, 2, some_tmp_value>,
32 unpaired<1, 2>::apply<some_tmp_value>::type
33 >
34 ));
35}
36
37

source code of boost/libs/metaparse/test/unpaired.cpp