• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
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).
6 
7 #include <boost/vmd/assert_is_tuple.hpp>
8 #include <boost/detail/lightweight_test.hpp>
9 
main()10 int main()
11   {
12 
13 #if BOOST_PP_VARIADICS
14 
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)))
19 
20 #if !BOOST_VMD_MSVC_V8
21 
22   #define AN_EMPTY_TUPLE ()
23 
24 #endif
25 
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)
32 
33 #if !BOOST_VMD_MSVC_V8
34 
35   BOOST_VMD_ASSERT_IS_TUPLE(())
36   BOOST_VMD_ASSERT_IS_TUPLE(AN_EMPTY_TUPLE)
37 
38 #endif
39 
40 #else
41 
42   BOOST_VMD_ASSERT(0)
43 
44 #endif
45 
46   return boost::report_errors();
47 
48   }
49