Convert two remaining cases of BOOST_FOREACH to range-for
This commit is contained in:
parent
0688e6df8f
commit
9fc19a9fbd
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue