]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/tti/test/test_has_static_mem_fun_compile.cpp
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).
7 #include "test_has_static_mem_fun.hpp"
8 #include <boost/mpl/assert.hpp>
13 // You can always instantiate without compiler errors
15 TheTIntFunction
<AType
,void,boost::mpl::vector
<long,double> > aVar
;
16 Pickedname
<AnotherType
,AType
,boost::mpl::vector
<long,long> > aVar3
;
18 // Compile time asserts
20 BOOST_MPL_ASSERT((HaveTheSIntFunction
<AType
,int,boost::mpl::vector
<long,double> >));
21 BOOST_MPL_ASSERT((TheTIntFunction
<AnotherType
,AType
,boost::mpl::vector
<long,double> >));
22 BOOST_MPL_ASSERT((BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_GEN(TSFunction
)<AnotherType
,AType::AStructType
,boost::mpl::vector
<AType::AnIntType
,double> >));