Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++20 removed std::uncaught_exception #143

Open
QuellaZhang opened this issue Feb 17, 2020 · 1 comment
Open

C++20 removed std::uncaught_exception #143

QuellaZhang opened this issue Feb 17, 2020 · 1 comment

Comments

@QuellaZhang
Copy link

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

@lewissbaker
Copy link
Owner

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants