]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/function_types/test/custom_ccs/member_ccs.cpp
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 #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS
11 #include <boost/mpl/assert.hpp>
12 #include <boost/mpl/vector.hpp>
13 #include <boost/function_types/member_function_pointer.hpp>
14 #include <boost/function_types/is_callable_builtin.hpp>
16 #ifndef BOOST_FT_CC_STDCALL
17 # error "test not supported with this compiler/platform"
20 namespace ft
= boost::function_types
;
21 namespace mpl
= boost::mpl
;
23 typedef ft::stdcall_cc cc
;
28 ft::is_callable_builtin
<
29 ft::member_function_pointer
<mpl::vector
<int, C
&>, cc
>::type
34 ft::is_callable_builtin
<
35 ft::member_function_pointer
<mpl::vector
<int, C
const &>, cc
>::type
40 ft::is_callable_builtin
<
41 ft::member_function_pointer
<mpl::vector
<int, C
volatile &>, cc
>::type
46 ft::is_callable_builtin
<
47 ft::member_function_pointer
<mpl::vector
<int, C
const volatile &>, cc
>::type