]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/example/class_of.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / callable_traits / example / class_of.cpp
1 /*<-
2 Copyright (c) 2016 Barrett Adair
3
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)
6 ->*/
7
8 #include <boost/callable_traits/detail/config.hpp>
9
10 //[ class_of
11 #include <type_traits>
12 #include <boost/callable_traits/class_of.hpp>
13
14 namespace ct = boost::callable_traits;
15
16 struct foo;
17
18 static_assert(std::is_same<foo, ct::class_of_t<int(foo::*)()>>::value, "");
19 static_assert(std::is_same<foo, ct::class_of_t<int foo::*>>::value, "");
20
21 int main() {}
22 //]