]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/vmd/test/test_assert_is_tuple.cxx
2 // (C) Copyright Edward Diener 2011-2015
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 #include <boost/vmd/assert_is_tuple.hpp>
8 #include <boost/detail/lightweight_test.hpp>
13 #if BOOST_PP_VARIADICS
15 #define A_TUPLE (*,#,zz)
16 #define A_TUPLE2 (*,#,(zz,44,(e7)))
17 #define AN_ARRAY (4,(5,7,f,x))
18 #define A_LIST (e,(g,(&,BOOST_PP_NIL)))
20 #if !BOOST_VMD_MSVC_V8
22 #define AN_EMPTY_TUPLE ()
26 BOOST_VMD_ASSERT_IS_TUPLE((t
,3,e
,2))
27 BOOST_VMD_ASSERT_IS_TUPLE(((y
,s
,w
),3,e
,2))
28 BOOST_VMD_ASSERT_IS_TUPLE(A_TUPLE
)
29 BOOST_VMD_ASSERT_IS_TUPLE(A_TUPLE2
)
30 BOOST_VMD_ASSERT_IS_TUPLE(AN_ARRAY
)
31 BOOST_VMD_ASSERT_IS_TUPLE(A_LIST
)
33 #if !BOOST_VMD_MSVC_V8
35 BOOST_VMD_ASSERT_IS_TUPLE(())
36 BOOST_VMD_ASSERT_IS_TUPLE(AN_EMPTY_TUPLE
)
46 return boost::report_errors();