diff --git a/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp b/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp index d2126037f..f23f8202e 100644 --- a/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp +++ b/src/Magnum/Math/Algorithms/Test/KahanSumTest.cpp @@ -68,6 +68,7 @@ template struct Iterator { explicit Iterator(T value, std::size_t i = 0): _value{value}, _i{i} {} + bool operator==(const Iterator& other) const { return _i == other._i; } bool operator!=(const Iterator& other) const { return _i != other._i; } Iterator& operator++() { diff --git a/src/Magnum/Math/Test/DualTest.cpp b/src/Magnum/Math/Test/DualTest.cpp index fab2a6dfe..05da3e60a 100644 --- a/src/Magnum/Math/Test/DualTest.cpp +++ b/src/Magnum/Math/Test/DualTest.cpp @@ -106,9 +106,11 @@ void DualTest::construct() { CORRADE_COMPARE(b, 2.0f); CORRADE_COMPARE(c, -7.5f); +#if !defined(_MSC_VER) || (_MSC_VER > 1910) constexpr Dual d(3.0f); CORRADE_COMPARE(d.real(), 3.0f); CORRADE_COMPARE(d.dual(), 0.0f); +#endif CORRADE_VERIFY((std::is_nothrow_constructible::value)); } diff --git a/src/MagnumPlugins/MagnumFont/MagnumFont.cpp b/src/MagnumPlugins/MagnumFont/MagnumFont.cpp index f7aaacd4f..df35dc8f0 100644 --- a/src/MagnumPlugins/MagnumFont/MagnumFont.cpp +++ b/src/MagnumPlugins/MagnumFont/MagnumFont.cpp @@ -76,7 +76,7 @@ auto MagnumFont::doOpenData(const std::vector