Skip to content

Commit

Permalink
nicer stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Oct 24, 2016
1 parent 84a426a commit 9b46167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/reference_wrapper_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ struct print
void operator()(line_string const& line) const
{
std::cerr << "Line(";
bool first = true;
for (auto const& pt : line)
{
std::cerr << pt.x << " " << pt.y << ",";
if (!first) std::cerr << ",";
std::cerr << pt.x << " " << pt.y;
if (first) first = false;
}
std::cerr << ")" << std::endl;
}
Expand Down

0 comments on commit 9b46167

Please sign in to comment.