]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/callable_traits/example/remove_transaction_safe.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / callable_traits / example / remove_transaction_safe.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 #ifndef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE
11 int main(){}
12 #else
13
14 //[ remove_transaction_safe
15 #include <type_traits>
16 #include <boost/callable_traits/remove_transaction_safe.hpp>
17
18 namespace ct = boost::callable_traits;
19
20 using ts = int() transaction_safe;
21 using not_ts = int();
22 using ts_removed = ct::remove_transaction_safe_t<ts>;
23
24 static_assert(std::is_same<not_ts, ts_removed>{}, "");
25
26 int main() {}
27 //]
28 #endif //#ifndef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE
29