mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-03 12:50:29 -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
9acd5840c3
commit
9169bee053
@ -133,7 +133,7 @@ CHECK_CXX_SOURCE_RUNS("
|
||||
#include <regex>
|
||||
int main(void)
|
||||
{
|
||||
std::regex r(\"AB.*|BC+\");
|
||||
std::regex r(\"AB.*|BC+\", std::regex::extended);
|
||||
if (!std::regex_match(\"AB\", r))
|
||||
return 1;
|
||||
if (!std::regex_match(\"ABC\", r))
|
||||
|
Loading…
Reference in New Issue
Block a user