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 20:25:37


On Thursday, 26 December 2019 16:04:04 -03 Edward Diener via Std-Discussion
wrote:
> Template libraries should determine the types they can work with based
> on type requirements, not an arbitrary hard-coded set of types.
> Determination based on type requirements gives the library a flexibility
> which a hard-coded set of types does not have.

Then don't make it a template library. Regex is complex enough as it is, no
need for templates. Regex needs to be fast and *safe*, usually implemented by
a third-party library like PCRE.

-- 
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