fix boost::regex usage

turns out that boost::regex("foo") should be used instead of
boost::regex::basic_regex
This commit is contained in:
Andreas Lauser 2014-07-01 10:21:08 +02:00
parent f6689d838e
commit e2eca64f59

View File

@ -508,7 +508,7 @@ namespace Opm {
void ParserKeyword::setMatchRegex(const std::string& deckNameRegexp) {
try {
m_matchRegex = boost::regex::basic_regex<std::string::value_type>(deckNameRegexp);
m_matchRegex = boost::regex(deckNameRegexp);
m_matchRegexString = deckNameRegexp;
}
catch (const boost::bad_expression &e) {