diff options
| author | Pieter Wuille <[email protected]> | 2014-10-15 12:39:33 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-10-15 12:43:16 -0700 |
| commit | e8f6d54f1f58d9a5998e37367b84b427e51e1ad7 (patch) | |
| tree | 8b40c5a3f4e10c1951a9fc7d327e15cbc632c8f2 /src/version.cpp | |
| parent | Merge pull request #4942 (diff) | |
| parent | boost: drop boost dependency in version.cpp. (diff) | |
| download | discoin-e8f6d54f1f58d9a5998e37367b84b427e51e1ad7.tar.xz discoin-e8f6d54f1f58d9a5998e37367b84b427e51e1ad7.zip | |
Merge pull request #5082
5f4bcf6 boost: drop boost dependency in version.cpp. (Cory Fields)
352058e boost: drop boost dependency in utilstrencodings.cpp (Cory Fields)
e1c9467 boost: drop boost dependency in core.cpp (Cory Fields)
e405aa4 boost: remove CPrivKey dependency from CECKey (Cory Fields)
5295506 boost: drop dependency on tuple in serialization (Cory Fields)
1d9b86d boost: drop dependency on is_fundamental in serialization (Cory Fields)
Diffstat (limited to 'src/version.cpp')
| -rw-r--r-- | src/version.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/version.cpp b/src/version.cpp index 95632fdab..d12b681e5 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -8,8 +8,6 @@ #include <string> -#include <boost/algorithm/string/join.hpp> - // Name of client reported in the 'version' message. Report the same name // for both bitcoind and bitcoin-qt, to make it harder for attackers to // target servers or GUI users specifically. @@ -94,7 +92,13 @@ std::string FormatSubVersion(const std::string& name, int nClientVersion, const ss << "/"; ss << name << ":" << FormatVersion(nClientVersion); if (!comments.empty()) - ss << "(" << boost::algorithm::join(comments, "; ") << ")"; + { + std::vector<std::string>::const_iterator it(comments.begin()); + ss << "(" << *it; + for(++it; it != comments.end(); ++it) + ss << "; " << *it; + ss << ")"; + } ss << "/"; return ss.str(); } |