[squid-dev] [PATCH] remove old GnuRegex third-party code
Amos Jeffries
squid3 at treenet.co.nz
Tue Jul 28 17:48:38 UTC 2015
On 29/07/2015 3:39 a.m., Alex Rousskov wrote:
> On 07/28/2015 06:51 AM, Amos Jeffries wrote:
>
>> The attached patch replaces all Squid code uses of regex.h C API with
>> std::regex C++ API and drops the libregex related detections from
>> ./configure
>
>
>> * In the present day all systems using C++11 provide a std::regex API
>> from the STL. This means all systems Squid-4 supports will provide it.
>
>
> Not quite: AFAIK, GCC versions 4.8 and below do not support std::regex.
> They do provide the API, but without the implementation to back it up:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631
> http://stackoverflow.com/questions/12530406/is-gcc-4-7-and-gcc-4-8-buggy-about-regular-expressions
> http://stackoverflow.com/questions/20027305/strange-results-when-using-c11-regexp-with-gcc-4-8-2-but-works-with-boost-reg
>
>
> We are not going to require GCC v4.9 for Squid v4.0, are we?
No unless we really have to. 4.7+ was indeed the plan.
I will try and see if the std::tr1::regex I heard about actually works.
Amos
More information about the squid-dev
mailing list