Skip to content

Commit

Permalink
Replace _CPPUNWIND with _HAS_EXCEPTIONS(#27, thanks @DBJDBJ)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Nov 15, 2020
1 parent aa59067 commit fabb92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nonstd/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
// Control presence of exception handling (try and auto discover):

#ifndef nsel_CONFIG_NO_EXCEPTIONS
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || defined(_CPPUNWIND)
# if defined(__cpp_exceptions) || defined(__EXCEPTIONS) || (_HAS_EXCEPTIONS != 0)
# define nsel_CONFIG_NO_EXCEPTIONS 0
# else
# define nsel_CONFIG_NO_EXCEPTIONS 1
Expand Down

0 comments on commit fabb92e

Please sign in to comment.