]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/tti/test/test_has_static_mem_fun_template_compile.cpp
2 // (C) Copyright Edward Diener 2019
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_template.hpp"
8 #include <boost/mpl/assert.hpp>
13 // You can always instantiate without compiler errors
15 BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_TEMPLATE_GEN(StatFuncTemplate
)<AType::AStructType
,bool,boost::mpl::vector
<short *,long> > aVar
;
16 TAnother
<AType
,void,boost::mpl::vector
<int,long &,const long &>,boost::function_types::const_qualified
> aVar2
;
17 BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_TEMPLATE_GEN(YetAnotherFuncTemplate
)<AnotherType
,void,boost::mpl::vector
<const int &,float &> > aVar3
;
19 BOOST_MPL_ASSERT((BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_TEMPLATE_GEN(StatFuncTemplate
)<AType::AStructType
,int,boost::mpl::vector
<short *,long> >));
20 BOOST_MPL_ASSERT((TAnother
<AType
,void,boost::mpl::vector
<int,long &,const long &> >));
21 BOOST_MPL_ASSERT((BOOST_TTI_HAS_STATIC_MEMBER_FUNCTION_TEMPLATE_GEN(YetAnotherFuncTemplate
)<AnotherType
,void,boost::mpl::vector
<const double &,float &> >));