diff --git a/src/Magnum/Math/Test/VectorTest.cpp b/src/Magnum/Math/Test/VectorTest.cpp index 903a35245..5ce3e22a1 100644 --- a/src/Magnum/Math/Test/VectorTest.cpp +++ b/src/Magnum/Math/Test/VectorTest.cpp @@ -214,11 +214,7 @@ void VectorTest::constructOneComponent() { /* Implicit constructor must work */ constexpr Vector1 vec = 1.0f; - CORRADE_COMPARE(vec, Vector1{1.0f}); - - /* Conversion back must also work */ - Float value = vec; - CORRADE_COMPARE(value, 1.0f); + CORRADE_COMPARE(vec, Vector1(1)); } void VectorTest::constructConversion() { diff --git a/src/Magnum/Math/Vector.h b/src/Magnum/Math/Vector.h index 2110cb643..cc10cccc3 100644 --- a/src/Magnum/Math/Vector.h +++ b/src/Magnum/Math/Vector.h @@ -211,11 +211,6 @@ template class Vector { return Implementation::VectorConverter::to(*this); } - /** @brief Convert single-component vector to scalar value */ - template::type> constexpr /*implicit*/ operator U() const { - return *_data; - } - /** * @brief Raw data * @return One-dimensional array of `size` length.