]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/example/function_types_remove_const_comparison.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / callable_traits / example / function_types_remove_const_comparison.cpp
1 /*<-
2 Copyright Barrett Adair 2016-2017
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt)
5 ->*/
6
7 //[ function_types_remove_const_comparison
8 #include <type_traits>
9 #include <boost/callable_traits/remove_member_const.hpp>
10
11 struct foo {
12 void bar() const {}
13 };
14
15 using const_removed = boost::callable_traits::remove_member_const_t<decltype(&foo::bar)>;
16
17 static_assert(std::is_same<const_removed, void(foo::*)()>::value, "");
18
19 int main(){}
20
21 //]