• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
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).
6 
7 #include "test_has_mem_fun_template.hpp"
8 #include <boost/detail/lightweight_test.hpp>
9 
main()10 int main()
11   {
12 
13   // Use const enclosing type
14 
15   BOOST_TEST((FirstCMFT<const AType,double,boost::mpl::vector<short,long> >::value));
16 
17   // Use const_qualified
18 
19   BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(WFunctionTmp)<AType,void,boost::mpl::vector<int **, long &, bool>,boost::function_types::const_qualified>::value));
20 
21   // Use volatile enclosing type
22 
23   BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(AVolatileFT)<volatile AType,double,boost::mpl::vector<float, long, char> >::value));
24 
25   // Use volatile_qualified
26 
27   BOOST_TEST((VolG<AType,void,boost::mpl::vector<long &>,boost::function_types::volatile_qualified>::value));
28 
29   // Use const volatile enclosing type
30 
31   BOOST_TEST((ACV<const volatile AType,double,boost::mpl::vector<int,short> >::value));
32 
33   // Use const_volatile_qualified
34 
35   BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(ConstVolTTFun)<AType,void,boost::mpl::vector<float,double>,boost::function_types::cv_qualified>::value));
36 
37   return boost::report_errors();
38 
39   }
40