From 654b97091fed77395d471c1644d5eb27f95bf5d6 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 21 Mar 2021 22:41:22 -0400 Subject: [PATCH] Change default on C++17 to uncaught_exceptions * By popular demand. * If you need to undo this change, compile with -DHAS_UNCAUGHT_EXCEPTIONS=0. --- include/date/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/date/date.h b/include/date/date.h index 7519bb8..6dc9e73 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -136,7 +136,7 @@ namespace date #endif #ifndef HAS_UNCAUGHT_EXCEPTIONS -# if __cplusplus > 201703 || (defined(_MSVC_LANG) && _MSVC_LANG > 201703L) +# if __cplusplus >= 201703 || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) # define HAS_UNCAUGHT_EXCEPTIONS 1 # else # define HAS_UNCAUGHT_EXCEPTIONS 0