From 04c7ffdf1b3c7d148526a2791201949468d86b54 Mon Sep 17 00:00:00 2001 From: sigman Date: Wed, 14 Jun 2017 12:53:40 +0200 Subject: [PATCH] Math/Algorithms: MSVC 2017 needs operator==() as well. --- src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp b/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp index 98d7df01d..616acb362 100644 --- a/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp +++ b/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp @@ -68,6 +68,8 @@ template struct Iterator { explicit Iterator(T value, std::size_t i = 0): _value{value}, _i{i} {} + /* MSVC 2017 needs operator==() as well */ + bool operator==(const Iterator& other) const { return _i == other._i; } bool operator!=(const Iterator& other) const { return _i != other._i; } Iterator& operator++() {