Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stl/inc/typeinfo
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ _STL_DISABLE_CLANG_WARNINGS

#include <vcruntime_typeinfo.h>

_EXPORT_STD extern "C++" class type_info; // for typeid, MSVC looks for type_info in the global namespace

_STD_BEGIN

// size in pointers of std::function and std::any (roughly 3 pointers larger than std::string when building debug)
Expand Down
2 changes: 2 additions & 0 deletions tests/std/include/test_header_units_and_modules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,8 @@ void test_typeinfo() {
const type_info& t3 = typeid(double);
assert(t1 == t2);
assert(t1 != t3);

assert(typeid(double).name() == "double"sv); // also test DevCom-10349749
}

void test_unordered_map() {
Expand Down