12345678910111213141516171819202122232425262728293031 |
- #ifndef BOOST_CONTRACT_DETAIL_EXCEPTION_HPP_
- #define BOOST_CONTRACT_DETAIL_EXCEPTION_HPP_
- #include <boost/config.hpp>
- #include <exception>
- namespace boost { namespace contract { namespace detail {
- inline bool uncaught_exception() BOOST_NOEXCEPT {
-
-
-
- #ifdef __cpp_lib_uncaught_exceptions
- return std::uncaught_exceptions() > 0;
- #else
- return std::uncaught_exception();
- #endif
- }
- } } }
- #endif
|