C++ Logo


Advanced search

Subject: Re: Reinterpreting pointers of character types
From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2021-01-28 12:40:47

On 28/01/2021 19.22, Peter Brett via SG16 wrote:
> I think the big problem here is trying to make it a template.
> Make it named.  It’s literally not possible to use this correctly in generic code.

Agreed. The template layer does not help.
It's only ever intended to work for char * -> char8_t, nothing else.
(Or maybe I've misunderstood.)


SG16 list run by sg16-owner@lists.isocpp.org