C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Extend std::type_info with more information

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 07 Apr 2024 11:36:07 -0700
On Sunday 7 April 2024 06:35:10 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> We need more information in std::type_info, such as the 'sizeof'

We do? Why? What are the use-cases? Why can't they store that information
elsewhere? Why must everyone who uses typeinfo pay this extra payload penalty?

> I'm looking at the Itanium ABI spec here . . . and I'll look closer
> over the coming days but I can't see the 'sizeof' nor the 'alignof'
> anywhere, so I don't know how much extra info we can garner here???

None.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Principal Engineer - Intel DCAI Cloud Engineering

Received on 2024-04-07 18:36:13