C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::chimeric_ptr -- it's alive... it's ALIVE!

From: Bjorn Reese <breese_at_[hidden]>
Date: Mon, 8 Dec 2025 21:00:49 +0100
On 12/8/25 17:01, Frederick Virchanza Gotham via Std-Proposals wrote:
> Here's my paper on std::chimeric_ptr :

Section 9 claims that this is a plain library extension, but section 7.1
says that "compiler support is required" and section 8 that "p->name
performs ordered lookup". So you are changing the language lookup rules
for this particular type.

chimeric_ptr contains a tuple with N pointers of different types
pointing to the same object. This means that the size of the smart
pointer is likely too large to be passed to a function in a register,
which means that it is not a zero-overhead solution compared to the
alternatives.

Received on 2025-12-08 20:00:53