diff options
Diffstat (limited to 'libsolidity/interface/Exceptions.h')
-rw-r--r-- | libsolidity/interface/Exceptions.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libsolidity/interface/Exceptions.h b/libsolidity/interface/Exceptions.h index 6f38cba2..78eb88aa 100644 --- a/libsolidity/interface/Exceptions.h +++ b/libsolidity/interface/Exceptions.h @@ -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; } |