]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/tti/test/test_has_static_mem_data_compile.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / tti / test / test_has_static_mem_data_compile.cpp
CommitLineData
7c673cae
FG
1
2// (C) Copyright Edward Diener 2011
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 "test_has_static_mem_data.hpp"
8#include <boost/mpl/assert.hpp>
9
10int main()
11 {
12
13 // You can always instantiate without compiler errors
14
15 BOOST_TTI_HAS_STATIC_MEMBER_DATA_GEN(SomeStaticData)<AnotherType,long> aVar2;
16
17 // Compile time asserts
18
19 BOOST_MPL_ASSERT((BOOST_TTI_HAS_STATIC_MEMBER_DATA_GEN(DSMember)<AType,short>));
20 BOOST_MPL_ASSERT((StatName<AnotherType,AType::AStructType>));
21
22 return 0;
23
24 }