Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 8, 2020
1 parent 9a1b4e1 commit a160e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/iutest_stdlib.hpp
Expand Up @@ -268,7 +268,7 @@ class optional

inline bool uncaught_exception()
{
#if IUTEST_HAS_CXX1Z && (IUTEST_LIBSTDCXX_VERSION >= 60000)
#if IUTEST_HAS_CXX1Z && (!defined(IUTEST_LIBSTDCXX_VERSION) || (IUTEST_LIBSTDCXX_VERSION >= 60000))
return ::std::uncaught_exceptions() > 0;
#else
return ::std::uncaught_exception();
Expand Down

0 comments on commit a160e48

Please sign in to comment.