C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Character classification functions should return bool

From: blacktea hamburger <greenteahamburger_at_[hidden]>
Date: Fri, 28 Oct 2022 19:43:41 +0800
It would be nice to make <xxx.h> provide the original C library and <cxxx>
the modified C library (with even bigger changes) to solve the mess. It
won't break C compatibility and will even provide better C compatibility.

On Mon, Oct 24, 2022 at 2:09 AM Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Sunday, 23 October 2022 05:29:14 PDT Ville Voutilainen via
> Std-Proposals
> wrote:
> > Not the underlying one, the one that in some implementations is
> > system-provided. C++ implementations
> > can and do provide their own implementations of <cstdlib> and <cmath>.
>
> Indeed, but that doesn't solve the mess of workarounds. Getting WG14 to do
> something would be the cleanest of course.
>
> Do note that <ctype.h> is the worst of all, though, because all those
> isxxx
> are macros, requiring either C lib help (glibc doesn't define them in C++
> mode)
> or #undef in the C++ override.
>
> In any case, how about we add the _l explicit-locale additional functions
> to
> C++ first?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel DCAI Cloud Engineering
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2022-10-28 11:44:23