Browse Source

GCC 4.5 compatibility: can't default function in class body.

Vladimír Vondruš 13 years ago
parent
commit
ea776256bb
  1. 4
      src/SceneGraph/TranslationTransformation.h

4
src/SceneGraph/TranslationTransformation.h

@ -112,7 +112,7 @@ class TranslationTransformation: public AbstractTranslation<dimensions, T, Trans
protected: protected:
/* Allow construction only from Object */ /* Allow construction only from Object */
explicit TranslationTransformation() = default; explicit TranslationTransformation();
private: private:
void doResetTransformation() override final { resetTransformation(); } void doResetTransformation() override final { resetTransformation(); }
@ -124,6 +124,8 @@ class TranslationTransformation: public AbstractTranslation<dimensions, T, Trans
typename DimensionTraits<dimensions, TranslationType>::VectorType _transformation; typename DimensionTraits<dimensions, TranslationType>::VectorType _transformation;
}; };
template<UnsignedInt dimensions, class T, class TranslationType> inline TranslationTransformation<dimensions, T, TranslationType>::TranslationTransformation() = default;
#ifndef CORRADE_GCC46_COMPATIBILITY #ifndef CORRADE_GCC46_COMPATIBILITY
/** /**
@brief Base transformation for two-dimensional scenes supporting translation @brief Base transformation for two-dimensional scenes supporting translation

Loading…
Cancel
Save