C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Polymorphic operator new and polymorphic values

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 30 Apr 2025 19:55:11 +0300
On Wed, 30 Apr 2025 at 19:37, Hans Ã…berg via Std-Proposals
<std-proposals_at_[hidden]> wrote:

> > https://github.com/jbcoe/value_types/?tab=readme-ov-file#use
>
> The issue here is to get a proper copy and move when it holds an object of a derived class, and this example does not tell that.

This one does: https://godbolt.org/z/c1c6fbEf9

Received on 2025-04-30 16:55:25