eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.22k stars 169 forks source link

Fix std::uncaught_exceptions detection on MSVC. #228

Closed FranckRJ closed 3 years ago

FranckRJ commented 3 years ago

Check if the macro __cpp_lib_uncaught_exceptions is available as well because some compilers like MSVC report an old __cplusplus version even in C++17 mode.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 99.923% when pulling 0ebb61ba5b063885fcd1348971f89f756d882b39 on fix-uncaught_exceptions-detection-msvc into e40bc46bc41347f2ea39b7141a5b522873f516ef on master.