diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-08 23:07:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 23:07:25 +0800 |
commit | 90627040545f0257b01cc24f95edea1c89cdbbf3 (patch) | |
tree | 2a22ee42a7a2f0a146bc22b47d801f5d63ddca2c /libsolidity/interface | |
parent | efeffa808371b64e6aa7eb5d340baf5989af2cd5 (diff) | |
parent | e902ce1aa02dc5d19cc9dd231fa538646884826d (diff) | |
download | dexon-solidity-90627040545f0257b01cc24f95edea1c89cdbbf3.tar.gz dexon-solidity-90627040545f0257b01cc24f95edea1c89cdbbf3.tar.zst dexon-solidity-90627040545f0257b01cc24f95edea1c89cdbbf3.zip |
Merge pull request #4753 from mattaereal/boost-to-string-patch
Replace boost:lexical_cast<std::string> for std::to_string.
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 6 | ||||
-rw-r--r-- | libsolidity/interface/Exceptions.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 5cfd1758..836e30d2 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -925,17 +925,17 @@ string CompilerStack::computeSourceMapping(eth::AssemblyItems const& _items) con if (components-- > 0) { if (location.start != prevStart) - ret += std::to_string(location.start); + ret += to_string(location.start); if (components-- > 0) { ret += ':'; if (length != prevLength) - ret += std::to_string(length); + ret += to_string(length); if (components-- > 0) { ret += ':'; if (sourceIndex != prevSourceIndex) - ret += std::to_string(sourceIndex); + ret += to_string(sourceIndex); if (components-- > 0) { ret += ':'; diff --git a/libsolidity/interface/Exceptions.h b/libsolidity/interface/Exceptions.h index 7c66d572..629b8f3f 100644 --- a/libsolidity/interface/Exceptions.h +++ b/libsolidity/interface/Exceptions.h @@ -117,7 +117,7 @@ public: if (occurrences > 32) { infos.resize(32); - _message += " Truncated from " + boost::lexical_cast<std::string>(occurrences) + " to the first 32 occurrences."; + _message += " Truncated from " + std::to_string(occurrences) + " to the first 32 occurrences."; } } |