Skip to content

Commit

Permalink
Merge pull request #228 from eranpeer/fix-uncaught_exceptions-detecti…
Browse files Browse the repository at this point in the history
…on-msvc

Fix std::uncaught_exceptions detection on MSVC.
  • Loading branch information
FranckRJ authored Mar 21, 2021
2 parents e40bc46 + 0ebb61b commit 8bf82a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fakeit/FakeitExceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


namespace fakeit {
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || defined(__cpp_lib_uncaught_exceptions)
inline bool UncaughtException () {
return std::uncaught_exceptions() >= 1;
}
Expand Down

0 comments on commit 8bf82a3

Please sign in to comment.