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:
Andreas Lauser 2014-07-08 11:57:19 +02:00
parent 9acd5840c3
commit 9169bee053

View File

@ -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))