aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ErrorCheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/ErrorCheck.cpp')
-rw-r--r--test/libsolidity/ErrorCheck.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/ErrorCheck.cpp b/test/libsolidity/ErrorCheck.cpp
index 6dddda70..75555c9b 100644
--- a/test/libsolidity/ErrorCheck.cpp
+++ b/test/libsolidity/ErrorCheck.cpp
@@ -24,9 +24,11 @@
#include <string>
+using namespace std;
+
bool dev::solidity::searchErrorMessage(Error const& _err, std::string const& _substr)
{
- if (const std::string* errorMessage = boost::get_error_info<dev::errinfo_comment>(_err))
+ if (string const* errorMessage = boost::get_error_info<dev::errinfo_comment>(_err))
return errorMessage->find(_substr) != std::string::npos;
return _substr.empty();
}