Browse Source

GCC 4.4 compatibility: no explicit conversion operators.

Vladimír Vondruš 13 years ago
parent
commit
627c74c603
  1. 7
      src/Math/Test/Matrix3Test.cpp
  2. 7
      src/Math/Test/Matrix4Test.cpp
  3. 7
      src/Math/Test/MatrixTest.cpp
  4. 7
      src/Math/Test/RectangularMatrixTest.cpp

7
src/Math/Test/Matrix3Test.cpp

@ -200,7 +200,12 @@ void Matrix3Test::convert() {
/* Implicit conversion is not allowed */
CORRADE_VERIFY(!(std::is_convertible<Mat3, Matrix3>::value));
CORRADE_VERIFY(!(std::is_convertible<Matrix3, Mat3>::value));
{
#ifdef CORRADE_GCC44_COMPATIBILITY
CORRADE_EXPECT_FAIL("GCC 4.4 doesn't have explicit conversion operators");
#endif
CORRADE_VERIFY(!(std::is_convertible<Matrix3, Mat3>::value));
}
}
void Matrix3Test::isRigidTransformation() {

7
src/Math/Test/Matrix4Test.cpp

@ -224,7 +224,12 @@ void Matrix4Test::convert() {
/* Implicit conversion is not allowed */
CORRADE_VERIFY(!(std::is_convertible<Mat4, Matrix4>::value));
CORRADE_VERIFY(!(std::is_convertible<Matrix4, Mat4>::value));
{
#ifdef CORRADE_GCC44_COMPATIBILITY
CORRADE_EXPECT_FAIL("GCC 4.4 doesn't have explicit conversion operators");
#endif
CORRADE_VERIFY(!(std::is_convertible<Matrix4, Mat4>::value));
}
}
void Matrix4Test::isRigidTransformation() {

7
src/Math/Test/MatrixTest.cpp

@ -198,7 +198,12 @@ void MatrixTest::convert() {
/* Implicit conversion is not allowed */
CORRADE_VERIFY(!(std::is_convertible<Mat3, Matrix3>::value));
CORRADE_VERIFY(!(std::is_convertible<Matrix3, Mat3>::value));
{
#ifdef CORRADE_GCC44_COMPATIBILITY
CORRADE_EXPECT_FAIL("GCC 4.4 doesn't have explicit conversion operators");
#endif
CORRADE_VERIFY(!(std::is_convertible<Matrix3, Mat3>::value));
}
}
void MatrixTest::isOrthogonal() {

7
src/Math/Test/RectangularMatrixTest.cpp

@ -215,7 +215,12 @@ void RectangularMatrixTest::convert() {
/* Implicit conversion is not allowed */
CORRADE_VERIFY(!(std::is_convertible<Mat2x3, Matrix2x3>::value));
CORRADE_VERIFY(!(std::is_convertible<Matrix2x3, Mat2x3>::value));
{
#ifdef CORRADE_GCC44_COMPATIBILITY
CORRADE_EXPECT_FAIL("GCC 4.4 doesn't have explicit conversion operators");
#endif
CORRADE_VERIFY(!(std::is_convertible<Matrix2x3, Mat2x3>::value));
}
}
void RectangularMatrixTest::data() {

Loading…
Cancel
Save