C++ Logo

std-proposals

Advanced search

[std-proposals] std::type_info::size()

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Mon, 31 Jul 2023 14:34:58 +0100
I just realised today that you can't get the size of a type from its type_info.

Really. . . . . . . ?

Surely we should be able to do:

void Func(std::type_info const &ti)
{
    cout << ti.size() << endl;
}

Received on 2023-07-31 13:35:11