Skip to content

Commit

Permalink
Merge pull request #275 from tjaneczko/patch-1
Browse files Browse the repository at this point in the history
Fix portability of IMMER_THROW when exceptions are disabled
  • Loading branch information
arximboldi authored Jan 17, 2024
2 parents 5875f77 + e644569 commit d7984f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion immer/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define IMMER_CATCH(expr) else
#define IMMER_THROW(expr) \
do { \
assert(!#expr); \
assert((#expr, false)); \
std::terminate(); \
} while (false)
#define IMMER_RETHROW
Expand Down

0 comments on commit d7984f4

Please sign in to comment.