]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/vmd/test/test_tuple_size.cxx
2 // (C) Copyright Edward Diener 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/tuple/size.hpp>
8 #include <boost/detail/lightweight_test.hpp>
13 #if BOOST_PP_VARIADICS
15 #define A_TUPLE (1,2,3,4)
16 #define AN_EMPTY_TUPLE
18 BOOST_TEST_EQ(BOOST_VMD_TUPLE_SIZE(A_TUPLE
),4);
19 BOOST_TEST_EQ(BOOST_VMD_TUPLE_SIZE(AN_EMPTY_TUPLE
),0);
23 BOOST_ERROR("No variadic macro support");
27 return boost::report_errors();