diff --git a/STL_Extension/include/CGAL/assertions.h b/STL_Extension/include/CGAL/assertions.h index e9ecb9d52ef..90ea7557ed6 100644 --- a/STL_Extension/include/CGAL/assertions.h +++ b/STL_Extension/include/CGAL/assertions.h @@ -106,24 +106,12 @@ inline bool possibly(Uncertain c); # define CGAL_assume_code(CODE) CGAL_assertion_code(CODE) #endif // no CGAL_NO_ASSERTIONS -# if defined(CGAL_NO_ASSERTIONS) - -# define CGAL_static_assertion(EX) \ - static_assert(true, "") - -# define CGAL_static_assertion_msg(EX,MSG) \ - static_assert(true, "") - -# else // no CGAL_NO_ASSERTIONS - -# define CGAL_static_assertion(EX) \ +# define CGAL_static_assertion(EX) \ static_assert(EX, #EX) -# define CGAL_static_assertion_msg(EX,MSG) \ +# define CGAL_static_assertion_msg(EX,MSG) \ static_assert(EX, MSG) -# endif // no CGAL_NO_ASSERTIONS - #if defined(CGAL_NO_ASSERTIONS) || !defined(CGAL_CHECK_EXACTNESS) # define CGAL_exactness_assertion(EX) (static_cast(0)) # define CGAL_exactness_assertion_msg(EX,MSG) (static_cast(0))