Open emptyVoid opened 5 years ago
Ok, thanks.
You can also define HAS_UNCAUGHT_EXCEPTIONS=1
on the command line or with your IDE to override its default behavior in date.h.
I've just noticed:
https://github.com/HowardHinnant/date/blob/a029f1105d27b95c58bade4538c3238a199d86d1/include/date/date.h#L138
Shouldn't it be __cplusplus >= 201703
? Am I missing something?
I've had it both ways, and proved the old saying: You can't make everyone happy. :-)
With it as __cplusplus >= 201703
people complained about their binary not being ABI compatible with older versions of an OS. So I set it such that it triggers on the removal of uncaught_exception
instead of on the introduction of uncaught_exceptions
. With the fallback that people can set it however they want with HAS_UNCAUGHT_EXCEPTIONS
.
Oh, I see. Thanks for clarifying!
I'm getting this warning when trying to compile code using
date
withVisual Studio 2019
:Please note, this line: https://github.com/HowardHinnant/date/blob/8a563041fa65146531249ed557a6839809488521/include/date/date.h#L99
does not work in general case (e.g. when
<exception>
gets included before<date/date.h>
).HAS_UNCAUGHT_EXCEPTIONS
should probably be adjusted is the same manner asHAS_STRING_VIEW
: https://github.com/HowardHinnant/date/blob/8a563041fa65146531249ed557a6839809488521/include/date/date.h#L35