From f262b404cc564449ebe2ab381efd7f680aeb0d0a Mon Sep 17 00:00:00 2001 From: Chaim Sanders Date: Fri, 3 Jul 2015 17:00:46 -0400 Subject: [PATCH] Fixed issue #905 that dealt with compilation on c++ 5.x > --- test/regression/custom_debug_log.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/regression/custom_debug_log.cc b/test/regression/custom_debug_log.cc index 587bbc76..869d52c2 100644 --- a/test/regression/custom_debug_log.cc +++ b/test/regression/custom_debug_log.cc @@ -36,8 +36,8 @@ bool CustomDebugLog::write_log(int level, const std::string& message) { bool CustomDebugLog::contains(const std::string& pattern) { std::regex re(pattern); std::smatch match; - - return (std::regex_search(m_log.str(), match, re) && match.size() >= 1); + std::string s = m_log.str(); + return (std::regex_search(s, match, re) && match.size() >= 1); } std::string CustomDebugLog::log_messages() {