diff --git a/src/Math/Test/Matrix3Test.cpp b/src/Math/Test/Matrix3Test.cpp index eeaa8dd8b..5ff187c9a 100644 --- a/src/Math/Test/Matrix3Test.cpp +++ b/src/Math/Test/Matrix3Test.cpp @@ -135,6 +135,9 @@ void Matrix3Test::constructConversion() { CORRADE_COMPARE(b, Matrix3i({3, 5, 8}, {4, 4, 7}, {7, -1, 8})); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void Matrix3Test::constructCopy() { diff --git a/src/Math/Test/Matrix4Test.cpp b/src/Math/Test/Matrix4Test.cpp index 771b5dba7..a00d5c781 100644 --- a/src/Math/Test/Matrix4Test.cpp +++ b/src/Math/Test/Matrix4Test.cpp @@ -154,6 +154,9 @@ void Matrix4Test::constructConversion() { {4, 4, 7, 2}, {1, 2, 3, -1}, {7, -1, 8, -1})); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void Matrix4Test::constructCopy() { diff --git a/src/Math/Test/MatrixTest.cpp b/src/Math/Test/MatrixTest.cpp index 62973756f..92061d41d 100644 --- a/src/Math/Test/MatrixTest.cpp +++ b/src/Math/Test/MatrixTest.cpp @@ -132,6 +132,9 @@ void MatrixTest::constructConversion() { Vector4i(4, 4, 7, 2), Vector4i(1, 2, 3, -1), Vector4i(7, -1, 8, -1))); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void MatrixTest::constructCopy() { diff --git a/src/Math/Test/RectangularMatrixTest.cpp b/src/Math/Test/RectangularMatrixTest.cpp index d311231c3..9ce624889 100644 --- a/src/Math/Test/RectangularMatrixTest.cpp +++ b/src/Math/Test/RectangularMatrixTest.cpp @@ -134,6 +134,9 @@ void RectangularMatrixTest::constructConversion() { CORRADE_COMPARE(b, Matrix2i(Vector2i( 1, 2), Vector2i(-15, 7))); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void RectangularMatrixTest::constructFromData() { diff --git a/src/Math/Test/Vector2Test.cpp b/src/Math/Test/Vector2Test.cpp index 622c303d4..37ba4ec9f 100644 --- a/src/Math/Test/Vector2Test.cpp +++ b/src/Math/Test/Vector2Test.cpp @@ -120,6 +120,9 @@ void Vector2Test::constructConversion() { Vector2i b(a); /* Not constexpr under GCC < 4.7 */ #endif CORRADE_COMPARE(b, Vector2i(1, 2)); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void Vector2Test::constructCopy() { diff --git a/src/Math/Test/Vector3Test.cpp b/src/Math/Test/Vector3Test.cpp index 1dc913f47..baa1de9a2 100644 --- a/src/Math/Test/Vector3Test.cpp +++ b/src/Math/Test/Vector3Test.cpp @@ -133,6 +133,9 @@ void Vector3Test::constructConversion() { Vector3i b(a); /* Not constexpr under GCC < 4.7 */ #endif CORRADE_COMPARE(b, Vector3i(1, 2, -3)); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void Vector3Test::constructCopy() { diff --git a/src/Math/Test/Vector4Test.cpp b/src/Math/Test/Vector4Test.cpp index 3a18d019a..a31d45e46 100644 --- a/src/Math/Test/Vector4Test.cpp +++ b/src/Math/Test/Vector4Test.cpp @@ -130,6 +130,9 @@ void Vector4Test::constructConversion() { Vector4i b(a); /* Not constexpr under GCC < 4.7 */ #endif CORRADE_COMPARE(b, Vector4i(1, -2, 3, 4)); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void Vector4Test::constructCopy() { diff --git a/src/Math/Test/VectorTest.cpp b/src/Math/Test/VectorTest.cpp index 47d194992..ece641e27 100644 --- a/src/Math/Test/VectorTest.cpp +++ b/src/Math/Test/VectorTest.cpp @@ -187,6 +187,9 @@ void VectorTest::constructConversion() { #endif CORRADE_COMPARE(b, Vector4i(1, 2, -15, 7)); + + /* Implicit conversion is not allowed */ + CORRADE_VERIFY(!(std::is_convertible::value)); } void VectorTest::constructCopy() {