Skip to content

<typeinfo>: non-Standard extension type_info::raw_name #2195

@AlexGuteniev

Description

@AlexGuteniev

Describe the bug
The method type_info::raw_name exists, it works and no warning that it is non-Standard is emitted

Command-line test case

#include <iostream>
#include <typeinfo>

using namespace std;

int main()
{
    cout << typeid(cout).raw_name();
}
D:\temp2>cl /W4 /EHsc test.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.30.30423 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cpp
Microsoft (R) Incremental Linker Version 14.30.30423.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:test.exe
test.obj

D:\temp2>test
.?AV?$basic_ostream@DU?$char_traits@D@std@@@std@@

Expected behavior
Non Standard method called like _Raw_name() or does not exist

STL version

Microsoft Visual Studio Professional 2022 Preview (64-bit)
Version 17.0.0 Preview 3.1

Additional context

vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvNextBreaks binary compatibility

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions