Skip to content

Commit 23cb94f

Browse files
authored
GCC<=4.9: Exceptions (#76)
GCC 4.8 and 4.9 support exceptions, but are not detected as such. This adds exception support for those compilers. Detection taken from `nlohmann/json`.
1 parent a425029 commit 23cb94f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/mpark/config.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
#endif
6565

6666
#if __has_feature(cxx_exceptions) || defined(__cpp_exceptions) || \
67-
(defined(_MSC_VER) && defined(_CPPUNWIND))
67+
(defined(_MSC_VER) && defined(_CPPUNWIND)) || \
68+
defined(__EXCEPTIONS)
6869
#define MPARK_EXCEPTIONS
6970
#endif
7071

0 commit comments

Comments
 (0)