From 1b2aca4606fe588596199164f074be274c433040 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 12 Sep 2020 15:02:02 +0100 Subject: [PATCH] Work around for Clang error in etl::bresenham_line tests. --- test/test_bresenham_line.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test_bresenham_line.cpp b/test/test_bresenham_line.cpp index 887df3d0..2510117e 100644 --- a/test/test_bresenham_line.cpp +++ b/test/test_bresenham_line.cpp @@ -37,13 +37,19 @@ namespace using Value = char; using Point = etl::coordinate_2d; +} - std::ostream& operator << (std::ostream& os, const etl::coordinate_2d& point) +namespace etl +{ + std::ostream& operator << (std::ostream& os, const Point& point) { os << "(" << int(point.x) << "," << int(point.y) << ")"; return os; } +} +namespace +{ using BresenhamLine = etl::bresenham_line; SUITE(test_bresenham_line)