mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use extended regular expressions in the test for std::regex
for some compilers (e.g., GCC < 4.9) the default is buggy and opm-parser thus uses extended expressions... thanks to [at]bska for digging this up!
This commit is contained in:
parent
4a7dea3747
commit
05a607c7c9
@ -133,7 +133,7 @@ CHECK_CXX_SOURCE_RUNS("
|
|||||||
#include <regex>
|
#include <regex>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
std::regex r(\"AB.*|BC+\");
|
std::regex r(\"AB.*|BC+\", std::regex::extended);
|
||||||
if (!std::regex_match(\"AB\", r))
|
if (!std::regex_match(\"AB\", r))
|
||||||
return 1;
|
return 1;
|
||||||
if (!std::regex_match(\"ABC\", r))
|
if (!std::regex_match(\"ABC\", r))
|
||||||
|
Loading…
Reference in New Issue
Block a user