Skip to content

Commit

Permalink
Fix exception detection code
Browse files Browse the repository at this point in the history
  • Loading branch information
arximboldi committed Sep 17, 2024
1 parent efbbbf3 commit 41308e2
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 41308e2

Please sign in to comment.