]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/test/apply_member_pointer_pmd.cpp
2 Copyright (c) 2016 arett Adair
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
9 #include <boost/callable_traits/apply_member_pointer.hpp>
14 template<typename Input
, typename Output
>
16 assert_same
<TRAIT(apply_member_pointer
, Input
, foo
), Output
>();
20 test_case
<int, int foo::*>();
21 test_case
<int &, int foo::*>();
22 test_case
<int const, int const foo::*>();
23 test_case
<int const &, int const foo::*>();
24 test_case
<int volatile, int volatile foo::*>();
25 test_case
<int volatile &, int volatile foo::*>();
27 //member data - function pointer
28 test_case
<int(* const)(), int(* const foo::*)()>();
29 test_case
<int(* const &)(), int(* const foo::*)()>();