build+tests: Fixing c++11 mode compilation and correcting integrated test with faces
Change-Id: I32e34d6b2ee8cfd85ec83f62323dd7a51f2238d6
diff --git a/src/util/regex/regex-top-matcher.cpp b/src/util/regex/regex-top-matcher.cpp
index b00a891..6a4cf36 100644
--- a/src/util/regex/regex-top-matcher.cpp
+++ b/src/util/regex/regex-top-matcher.cpp
@@ -47,13 +47,13 @@
expr = expr.substr(0, expr.size()-1);
if ('^' != expr[0])
- m_secondaryMatcher = make_shared<RegexPatternListMatcher>(boost::cref("<.*>*" + expr),
- boost::cref(m_secondaryBackRefManager));
+ m_secondaryMatcher = make_shared<RegexPatternListMatcher>("<.*>*" + expr,
+ cref(m_secondaryBackRefManager));
else
expr = expr.substr(1, expr.size()-1);
- m_primaryMatcher = make_shared<RegexPatternListMatcher>(boost::cref(expr),
- boost::cref(m_primaryBackRefManager));
+ m_primaryMatcher = make_shared<RegexPatternListMatcher>(func_lib::cref(expr),
+ func_lib::cref(m_primaryBackRefManager));
}
bool
@@ -199,7 +199,8 @@
if (hasAnchor)
regexStr.append("$");
- return make_shared<RegexTopMatcher>(boost::cref(regexStr));
+ // OSX 10.9 has problems with just cref
+ return make_shared<RegexTopMatcher>(func_lib::cref(regexStr));
}
std::string