Fix broken build

This commit is contained in:
Tristan Penman 2020-07-17 17:20:11 +10:00
parent bbe62ecd7d
commit 0ee3bada09

View File

@ -847,7 +847,7 @@ public:
std::string pattern(constraint.getPattern<std::string::allocator_type>());
auto it = m_regexesCache.find(pattern);
if (it == m_regexesCache.end()) {
it = m_regexesCache.emplace(pattern, pattern).first;
it = m_regexesCache.emplace(pattern, std::regex(pattern)).first;
}
if (!std::regex_search(m_target.asString(), it->second)) {