From 9b46167f5c42a19a3b66cb92eb60418486b4e424 Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 24 Oct 2016 10:46:30 +0200 Subject: [PATCH] nicer stderr --- test/reference_wrapper_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/reference_wrapper_test.cpp b/test/reference_wrapper_test.cpp index 18eaecb..3b2085a 100644 --- a/test/reference_wrapper_test.cpp +++ b/test/reference_wrapper_test.cpp @@ -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; }