aboutsummaryrefslogtreecommitdiff
path: root/src/version.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-10-13 14:15:19 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-10-15 15:13:20 -0400
commit5f4bcf6b14eb45da408e19295332d2a8486d70df (patch)
tree8b40c5a3f4e10c1951a9fc7d327e15cbc632c8f2 /src/version.cpp
parent352058e8b0da4ec37b2f1891716c53adc2957a02 (diff)
boost: drop boost dependency in version.cpp.
Also add a test to verify.
Diffstat (limited to 'src/version.cpp')
-rw-r--r--src/version.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/version.cpp b/src/version.cpp
index 95632fdab7..d12b681e5c 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();
}