Skip to content

C++20 removed std::uncaught_exception #143

Description

@QuellaZhang

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions