aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/p2p_protocol_defs.h
diff options
context:
space:
mode:
authorMiguel Herranz <miguel@ipglider.org>2017-01-22 21:38:10 +0100
committerMiguel Herranz <miguel@ipglider.org>2017-01-22 21:38:10 +0100
commit629e3101ab54edfcadc42c6f3d7ea9c4fa3f9a93 (patch)
treef97194d4084995eda8bb10fd776881c49e1d9d88 /src/p2p/p2p_protocol_defs.h
parentMerge pull request #1608 (diff)
downloadmonero-629e3101ab54edfcadc42c6f3d7ea9c4fa3f9a93.tar.xz
Replace BOOST_FOREACH with C++11 ranged for
Diffstat (limited to 'src/p2p/p2p_protocol_defs.h')
-rw-r--r--src/p2p/p2p_protocol_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p_protocol_defs.h b/src/p2p/p2p_protocol_defs.h
index ce1ee1449..6d6ac7b98 100644
--- a/src/p2p/p2p_protocol_defs.h
+++ b/src/p2p/p2p_protocol_defs.h
@@ -83,7 +83,7 @@ namespace nodetool
time(&now_time);
std::stringstream ss;
ss << std::setfill ('0') << std::setw (8) << std::hex << std::noshowbase;
- BOOST_FOREACH(const peerlist_entry& pe, pl)
+ for(const peerlist_entry& pe: pl)
{
ss << pe.id << "\t" << epee::string_tools::get_ip_string_from_int32(pe.adr.ip) << ":" << boost::lexical_cast<std::string>(pe.adr.port) << " \tlast_seen: " << epee::misc_utils::get_time_interval_string(now_time - pe.last_seen) << std::endl;
}