test: wrapping the error message checking in a macro

This commit is contained in:
Yoichi Hirai committed 2016-11-23 17:38:41 +01:00
1 parent ab3db782ae
commit cace51fc47
2 files changed
+296 -275

No files matched your search

+2 -3
View File
@@ -58,11 +58,10 @@ public:
Type type() const { return m_type; }
std::string const& typeName() const { return m_typeName; }
template <typename T>
bool regex_search(T&& _reg) const
bool regex_search(const std::string& _reg) const
{
if (std::string const* str = boost::get_error_info<errinfo_comment>(*this))
return std::regex_search(*str, std::regex(std::forward<T>(_reg)));
return std::regex_search(*str, std::regex(_reg));
else
return false;
}
File diff suppressed because it is too large. Load diff