mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed deprecation warning about std::uncaught_exception in c++17 for msvc
This commit is contained in:
parent
61d5cf5634
commit
c42b708950
4 changed files with 20 additions and 1 deletions
|
|
@ -86,6 +86,15 @@ namespace detail
|
|||
|
||||
E* e_;
|
||||
};
|
||||
|
||||
inline int uncaught_exceptions()
|
||||
{
|
||||
#ifdef MOCK_UNCAUGHT_EXCEPTIONS
|
||||
return std::uncaught_exceptions();
|
||||
#else
|
||||
return std::uncaught_exception() ? 1 : 0;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
} // mock
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue