C++ Logo


Advanced search

Subject: Re: Problem of the type requirement of the regex library
From: Lyberta (lyberta_at_[hidden])
Date: 2019-12-25 21:00:00

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.

STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups