Skip to content

Commit

Permalink
Convert cases of boost::next to std::next
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 29, 2016
1 parent 7f563da commit 8ec544e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/serialization/string_utils.hpp
Expand Up @@ -22,7 +22,6 @@
#include <sstream>
#include <string>
#include <vector>
#include <boost/next_prior.hpp>

class t_string;

Expand Down Expand Up @@ -132,7 +131,7 @@ std::string join(T const &v, const std::string& s = ",")
std::stringstream str;
for(typename T::const_iterator i = v.begin(); i != v.end(); ++i) {
str << *i;
if (boost::next(i) != v.end())
if (std::next(i) != v.end())
str << s;
}

Expand All @@ -148,7 +147,7 @@ std::string join_map(
std::stringstream str;
for(typename T::const_iterator i = v.begin(); i != v.end(); ++i) {
str << i->first << minor << i->second;
if (boost::next(i) != v.end())
if (std::next(i) != v.end())
str << major;
}

Expand Down
2 changes: 1 addition & 1 deletion src/server/server.cpp
Expand Up @@ -2552,7 +2552,7 @@ void server::clones_handler(const std::string& /*issuer_name*/, const std::strin
for (player_connections::iterator it = player_connections_.begin(); it != player_connections_.end(); ++it) {
if (clones.find(client_address(it->socket())) != clones.end()) continue;
bool found = false;
for (player_connections::iterator clone = boost::next(it); clone != player_connections_.end(); ++clone) {
for (player_connections::iterator clone = std::next(it); clone != player_connections_.end(); ++clone) {
if (client_address(it->socket()) == client_address(clone->socket())) {
if (!found) {
found = true;
Expand Down

0 comments on commit 8ec544e

Please sign in to comment.