123456789101112131415161718192021222324252627282930 |
- /*<-
- Copyright (c) 2016 Barrett Adair
- Distributed under the Boost Software License, Version 1.0.
- (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
- ->*/
- #include <boost/callable_traits/detail/config.hpp>
- #ifndef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE
- int main(){}
- #else
- //[ add_transaction_safe
- #include <type_traits>
- #include <boost/callable_traits/add_transaction_safe.hpp>
- using boost::callable_traits::add_transaction_safe_t;
- using not_safe = int();
- using safe = int() transaction_safe;
- using safe_added = add_transaction_safe_t<not_safe>;
- static_assert(std::is_same<safe, safe_added>{}, "");
-
- int main() {}
- //]
- #endif
|