C++ Logo

std-proposals

Advanced search

Re: [std-proposals] constexpr tolower, toupper, isalpha

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 10 Jul 2025 08:12:17 -0700
On Thursday, 10 July 2025 07:53:48 Pacific Daylight Time Sebastian Wittmeier
via Std-Proposals wrote:
> It would be sad, if the slight updates of Unicode (minus the emoticons) lead
> to constexpr only ever supporting ASCII and no international symbols.

Why would it be? What is the need for constexpr support for some of those
Unicode operations?

> What if I want to do metaprogramming and change a camel case identifier into
> a lower case identifier?
>
> I have to create my own constexpr functions for unicode case conversion?

You meant reflection-based metaprogramming. I'd say this is a contrived example
that should not be used as a use-case.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Platform & System Engineering

Received on 2025-07-10 15:12:25