cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

C++20 removed std::uncaught_exception

Open QuellaZhang opened this issue 4 years ago • 1 comments

std::uncaught_exception was deprecated in C++17 and removed in C++20. In /std:c++17 mode, this triggers a deprecation warning in recent versions of MSVC. In /std:c++latest mode, now that microsoft/STL#380 has been merged, this will trigger an error in VS 2019 16.6 Preview 2.

The next release msvc toolset will emit the following error: F:\gitP\lewissbaker\cppcoro\test\doctest\doctest.h(4407): error C2039: 'uncaught_exception': is not a member of 'std' F:\gitP\lewissbaker\cppcoro\test\doctest\doctest.h(4407): error C3861: 'uncaught_exception': identifier not found

QuellaZhang avatar Feb 17 '20 06:02 QuellaZhang

In the vs2019 branch I have updated the doctest header to a more recent version which suppresses the deprecation warning for its use of std::uncaught_exception().

lewissbaker avatar Feb 24 '20 21:02 lewissbaker