C++ Logo

std-proposals

Advanced search

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

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Fri, 21 Nov 2025 18:56:29 +0000
On Fri, Nov 21, 2025 at 6:41 PM Andre Kostur wrote:
>
> Also, what if Text and Colorful both have a set_common() function, and
> gets called in set_text_and_color ?


The first class in the template parameter pack wins.

std::chimeric_ptr< Colourful, Text >
std::chimeric_ptr< Text, Colourful >

Received on 2025-11-21 18:55:00