C++ Logo

STD-DISCUSSION

Advanced search

Subject: Re: Problem of the type requirement of the regex library
From: Thiago Macieira (thiago_at_[hidden])
Date: 2019-12-26 11:18:18


On Thursday, 26 December 2019 00:00:00 -03 Lyberta via Std-Discussion wrote:
> 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::char_traits is used by std::string, which is not a text container. The
ones being created for std::text is a different story.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel System Software Products

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

Older Archives on Google Groups