Fixed deprecation warning about std::uncaught_exception in c++17 for msvc

This commit is contained in:
Mathieu Champlon 2018-03-23 18:18:23 +01:00
parent 61d5cf5634
commit c42b708950
4 changed files with 20 additions and 1 deletions

View file

@ -94,4 +94,11 @@
# endif
#endif
#if defined(__cplusplus) && (__cplusplus >= 201703L) || \
defined(_MSC_VER) && (_MSC_VER >= 1900)
# ifndef MOCK_NO_UNCAUGHT_EXCEPTIONS
# define MOCK_UNCAUGHT_EXCEPTIONS
# endif
#endif
#endif // MOCK_CONFIG_HPP_INCLUDED