Date: Fri, 16 May 2025 22:41:38 +0200
On 16/05/2025 22.20, Hans Ã…berg wrote:
>
>> On 16 May 2025, at 21:15, Jens Maurer <Jens.Maurer_at_[hidden]> wrote:
>>
>>> Possibly, implicit conversions between char8_t and char32_t cause problems here.
>>
>> How so? Why would the presence or absence of a conversion between T and U
>> affect the design space of supporting or not supporting a conversion between
>> some_class<T> to some_class<U>?
>
> If one is using explicit char8_t which gets converted into std::u32string, but perhaps this is not a problem.
Which example do you have in mind, specifically? I'm not finding a constructor
that would enable such a conversion, at this moment.
Jens
>
>> On 16 May 2025, at 21:15, Jens Maurer <Jens.Maurer_at_[hidden]> wrote:
>>
>>> Possibly, implicit conversions between char8_t and char32_t cause problems here.
>>
>> How so? Why would the presence or absence of a conversion between T and U
>> affect the design space of supporting or not supporting a conversion between
>> some_class<T> to some_class<U>?
>
> If one is using explicit char8_t which gets converted into std::u32string, but perhaps this is not a problem.
Which example do you have in mind, specifically? I'm not finding a constructor
that would enable such a conversion, at this moment.
Jens
Received on 2025-05-16 20:41:41