fix #if in assertions.h

This commit is contained in:
Andreas Fabri 2018-04-17 14:45:37 +01:00
parent bc53cd2392
commit 00ebc78c1d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ inline bool possibly(Uncertain<bool> c);
#else // no CGAL_NO_ASSERTIONS
# define CGAL_assertion(EX) \
(CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
# if __cpp_lib_uncaught_exceptions || ( _MSVC_LANG >= 201103L ) // C++17
# if __cpp_lib_uncaught_exceptions || ( _MSVC_LANG >= 201703L ) // C++17
# define CGAL_destructor_assertion(EX) \
(CGAL::possibly(EX)||(std::uncaught_exceptions() > 0)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
# else // use C++03 `std::uncaught_exception()`