Skip to content

<optional> <variant> etc. #pragma message for old standard mode should have STL#### prefix #155

Description

The Visual Studio IDE team would like to better surface cases when users try to use new language features in older language modes, as the IDE currently can't display the pragma messages we use, like:

#pragma message("class template optional is only available with C++17 or later.")

They requested that we change that message to be of the form STLNNNN (where N are digits) just like the rest of the library-generated diagnostics.

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

    enhancementSomething can be improvedfixedSomething works now, yay!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions