From 7dae58cbcc3df64e6add31020a7f44de1b28b3de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Aereal=20Ae=C3=B3n?= Date: Wed, 8 Aug 2018 03:55:43 -0300 Subject: Replace boost:lexical_cast for std::to_string. --- libdevcore/Exceptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdevcore/Exceptions.cpp') diff --git a/libdevcore/Exceptions.cpp b/libdevcore/Exceptions.cpp index f204dbc2..c614aece 100644 --- a/libdevcore/Exceptions.cpp +++ b/libdevcore/Exceptions.cpp @@ -43,7 +43,7 @@ string Exception::lineInfo() const ret += *file; ret += ':'; if (line) - ret += boost::lexical_cast(*line); + ret += std::to_string(*line); return ret; } -- cgit v1.2.3 From e902ce1aa02dc5d19cc9dd231fa538646884826d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Aereal=20Ae=C3=B3n?= Date: Wed, 8 Aug 2018 11:26:30 -0300 Subject: Removing std:: from std::to_string and include for boost/lexical_cast --- libdevcore/Exceptions.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libdevcore/Exceptions.cpp') diff --git a/libdevcore/Exceptions.cpp b/libdevcore/Exceptions.cpp index c614aece..97f03f6e 100644 --- a/libdevcore/Exceptions.cpp +++ b/libdevcore/Exceptions.cpp @@ -17,8 +17,6 @@ #include -#include - using namespace std; using namespace dev; @@ -43,7 +41,7 @@ string Exception::lineInfo() const ret += *file; ret += ':'; if (line) - ret += std::to_string(*line); + ret += to_string(*line); return ret; } -- cgit v1.2.3 From a102f3b783dec236e9a733f5a5338efce3ef8319 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Mon, 3 Sep 2018 15:01:15 +0200 Subject: Remove trailing whitespace for all files in the repository. --- libdevcore/Exceptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdevcore/Exceptions.cpp') diff --git a/libdevcore/Exceptions.cpp b/libdevcore/Exceptions.cpp index 97f03f6e..cff5abf4 100644 --- a/libdevcore/Exceptions.cpp +++ b/libdevcore/Exceptions.cpp @@ -25,7 +25,7 @@ char const* Exception::what() const noexcept // Return the comment if available. if (string const* cmt = comment()) return cmt->data(); - + // Fallback to base what(). // Boost accepts nullptr, but the C++ standard doesn't // and crashes on some platforms. -- cgit v1.2.3