From 8accece87de023c512e1cef6f22c519fe5ff47d7 Mon Sep 17 00:00:00 2001 From: svost Date: Sun, 6 Mar 2016 20:10:10 +0300 Subject: [PATCH] Get rid of boost::split function --- src/bitcoinrpc.cpp | 3 ++- src/walletdb.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index f52ae80..d0f4e15 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -427,7 +427,8 @@ int ReadHTTPStatus(std::basic_istream& stream, int &proto) string str; getline(stream, str); vector vWords; - boost::split(vWords, str, boost::is_any_of(" ")); + istringstream iss(str); + copy(istream_iterator(iss), istream_iterator(), back_inserter(vWords)); if (vWords.size() < 2) return HTTP_INTERNAL_SERVER_ERROR; proto = 0; diff --git a/src/walletdb.cpp b/src/walletdb.cpp index a072f18..5c78ff2 100644 --- a/src/walletdb.cpp +++ b/src/walletdb.cpp @@ -879,7 +879,8 @@ bool ImportWallet(CWallet *pwallet, const string& strLocation) continue; std::vector vstr; - boost::split(vstr, line, boost::is_any_of(" ")); + istringstream iss(line); + copy(istream_iterator(iss), istream_iterator(), back_inserter(vstr)); if (vstr.size() < 2) continue; CBitcoinSecret vchSecret; -- 1.7.1