Skip to content

Commit

Permalink
Merge pull request #290 from arximboldi/fix-exception-detect
Browse files Browse the repository at this point in the history
Fix exception detection code
  • Loading branch information
arximboldi authored Sep 17, 2024
2 parents efbbbf3 + 41308e2 commit 6f8b3d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions immer/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
#endif
#endif

#ifdef __has_feature
#if !__has_feature(cxx_exceptions)
#if defined(_MSC_VER)
#if !_HAS_EXCEPTIONS
#define IMMER_NO_EXCEPTIONS
#endif
#else
#if !__cpp_exceptions
#define IMMER_NO_EXCEPTIONS
#endif
#endif
Expand Down

0 comments on commit 6f8b3d4

Please sign in to comment.