// (C) Copyright John Maddock 2000. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifdef TEST_STD # include #else # include #endif #include "test.hpp" #include "check_integral_constant.hpp" TT_TEST_BEGIN(is_member_pointer) BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, false); #ifdef BOOST_TT_TEST_MS_FUNC_SIGS typedef void (__stdcall test_abc1::*scall_proc)(); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); #ifndef __CLR_VER typedef void (__fastcall test_abc1::*fcall_proc)(int); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); #endif typedef void (__cdecl test_abc1::*ccall_proc)(int, long, double); BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer::value, true); #endif TT_TEST_END