Fixed issue #905 that dealt with compilation on c++ 5.x >

This commit is contained in:
Chaim Sanders 2015-07-03 17:00:46 -04:00
parent b9507e3969
commit f262b404cc

View File

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