C++ Logo


Advanced search

Re: Problem of the type requirement of the regex library

From: Lyberta <lyberta_at_[hidden]>
Date: Thu, 26 Dec 2019 03:00:00 +0000
Thiago Macieira via Std-Discussion:
> I would go MUCH further: the regular expression library should be restricted
> to char8_t, char16_t and char32_t. For compatibility reasons, char is
> interpreted as char8_t. No other encodings or types.

Why not restrict all text processing to those? Also, remove
`std::char_traits` because it's useless. Having dumb type + smart traits
is one of the most horrible design decisions ever.

Received on 2019-12-25 21:03:30