2 // (C) Copyright Tobias Schwinger
4 // Use modification and distribution are subject to the boost Software License,
5 // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
7 //------------------------------------------------------------------------------
9 #include <boost/mpl/assert.hpp>
10 #include <boost/function_types/is_nonmember_callable_builtin.hpp>
12 namespace ft
= boost::function_types
;
15 typedef void (*func_ptr
)();
16 typedef void (&func_ref
)();
18 typedef void (C::*mem_func_ptr
)();
19 typedef void (C::*c_mem_func_ptr
)() const;
20 typedef void (C::*v_mem_func_ptr
)() volatile;
21 typedef void (C::*cv_mem_func_ptr
)() const volatile;
25 ft::is_nonmember_callable_builtin
< func
>
29 ft::is_nonmember_callable_builtin
< func_ptr
>
33 ft::is_nonmember_callable_builtin
< func_ref
>
36 BOOST_MPL_ASSERT_NOT((
37 ft::is_nonmember_callable_builtin
< mem_func_ptr
>
40 BOOST_MPL_ASSERT_NOT((
41 ft::is_nonmember_callable_builtin
< c_mem_func_ptr
>
44 BOOST_MPL_ASSERT_NOT((
45 ft::is_nonmember_callable_builtin
< v_mem_func_ptr
>
48 BOOST_MPL_ASSERT_NOT((
49 ft::is_nonmember_callable_builtin
< cv_mem_func_ptr
>
52 BOOST_MPL_ASSERT_NOT((
53 ft::is_nonmember_callable_builtin
< func_ptr
* >
56 BOOST_MPL_ASSERT_NOT((
57 ft::is_nonmember_callable_builtin
< mem_func_ptr
* >
60 BOOST_MPL_ASSERT_NOT((
61 ft::is_nonmember_callable_builtin
< C
>
64 BOOST_MPL_ASSERT_NOT((
65 ft::is_nonmember_callable_builtin
< int >
68 BOOST_MPL_ASSERT_NOT((
69 ft::is_nonmember_callable_builtin
< int* >
72 BOOST_MPL_ASSERT_NOT((
73 ft::is_nonmember_callable_builtin
< int** >
76 BOOST_MPL_ASSERT_NOT((
77 ft::is_nonmember_callable_builtin
< int& >
80 BOOST_MPL_ASSERT_NOT((
81 ft::is_nonmember_callable_builtin
< int[] >
84 BOOST_MPL_ASSERT_NOT((
85 ft::is_nonmember_callable_builtin
< int[1] >