C++ Logo

std-proposals

Advanced search

[std-proposals] Character classification functions should return bool

From: blacktea hamburger <greenteahamburger_at_[hidden]>
Date: Sun, 16 Oct 2022 18:42:33 +0800
Character classification functions in C return int, but C++ has built-in
bool type, so they should return bool.

And they are usually used like:

if (std::isdigit(c))
{ ... }

So it basically won't break existing code.

Received on 2022-10-16 10:43:03