]>
Commit | Line | Data |
---|---|---|
b32b8144 FG |
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_NOEXCEPT_TYPES | |
11 | int main(){} | |
12 | #else | |
13 | ||
14 | //[ remove_noexcept | |
15 | #include <type_traits> | |
16 | #include <boost/callable_traits/remove_noexcept.hpp> | |
17 | ||
18 | using boost::callable_traits::remove_noexcept_t; | |
19 | ||
20 | static_assert(std::is_same< | |
11fdf7f2 TL |
21 | remove_noexcept_t<int() noexcept>, |
22 | int() | |
b32b8144 | 23 | >{}, ""); |
11fdf7f2 | 24 | |
b32b8144 FG |
25 | int main() {} |
26 | ||
27 | //] | |
28 | #endif | |
29 |