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
8e4b9e1f6a
commit
dabe50d77d
@ -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