C++ Logo


Advanced search

Re: Problem of the type requirement of the regex library

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 26 Dec 2019 23:25:37 -0300
On Thursday, 26 December 2019 16:04:04 -03 Edward Diener via Std-Discussion
> 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

Received on 2019-12-26 20:28:08