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()10int main() 11 { 12 13 // Use const 14 15 BOOST_TEST((FirstCMFT<double (AType::*)(short,long) const>::value)); 16 BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(WFunctionTmp)<void (AType::*)(int **, long &, bool) const>::value)); 17 18 // Use volatile 19 20 BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(AVolatileFT)<double (AType::*)(float, long, char) volatile>::value)); 21 BOOST_TEST((VolG<void (AType::*)(long &) volatile>::value)); 22 23 // Use const volatile 24 25 BOOST_TEST((ACV<double (AType::*)(int,short) const volatile>::value)); 26 BOOST_TEST((BOOST_TTI_HAS_MEMBER_FUNCTION_TEMPLATE_GEN(ConstVolTTFun)<void (AType::*)(float,double) const volatile>::value)); 27 28 return boost::report_errors(); 29 30 } 31