Skip to content

Commit

Permalink
Convert two remaining cases of BOOST_FOREACH to range-for
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Apr 2, 2016
1 parent 0688e6d commit 9fc19a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracer.cpp
Expand Up @@ -33,7 +33,7 @@ ttracer::tprint::~tprint()

typedef std::pair<std::pair<int, std::string>, int> thack;
size_t maximum_length = 0;
BOOST_FOREACH(const thack& counter, tracer->counters) {
for(const thack& counter : tracer->counters) {
maximum_length = std::max(
maximum_length
, counter.first.second.length());
Expand All @@ -43,7 +43,7 @@ ttracer::tprint::~tprint()
std::ios_base::left
, std::ios_base::adjustfield);

BOOST_FOREACH(const thack& counter, tracer->counters) {
for(const thack& counter : tracer->counters) {
std::cerr << "Marker: "
<< std::left
<< std::setw(maximum_length) << counter.first.second
Expand Down

0 comments on commit 9fc19a9

Please sign in to comment.