Browse Source

SceneGraph: GCC 4.7 SRSLY ... and the other compilers as well?!

pull/191/head
Vladimír Vondruš 8 years ago
parent
commit
026cb24a14
  1. 4
      src/Magnum/SceneGraph/TranslationRotationScalingTransformation2D.h
  2. 4
      src/Magnum/SceneGraph/TranslationRotationScalingTransformation3D.h

4
src/Magnum/SceneGraph/TranslationRotationScalingTransformation2D.h

@ -224,7 +224,9 @@ template<class T> class BasicTranslationRotationScalingTransformation2D: public
Math::Vector2<T> _translation;
Math::Complex<T> _rotation;
Math::Vector2<T> _scaling{T(1)};
/* Can't {} on GCC 4.7, _scaling(T(1)) fails on the most vexing parse
(what the ... eh???) */
Math::Vector2<T> _scaling = Math::Vector2<T>(T(1));
};
/**

4
src/Magnum/SceneGraph/TranslationRotationScalingTransformation3D.h

@ -314,7 +314,9 @@ template<class T> class BasicTranslationRotationScalingTransformation3D: public
Math::Vector3<T> _translation;
Math::Quaternion<T> _rotation;
Math::Vector3<T> _scaling{T(1)};
/* Can't {} on GCC 4.7, _scaling(T(1)) fails on the most vexing parse
(what the ... eh???) */
Math::Vector3<T> _scaling = Math::Vector3<T>(T(1));
};
/**

Loading…
Cancel
Save