Browse Source

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

Vladimír Vondruš 13 years ago
parent
commit
dc03e7b6d7
  1. 4
      src/Platform/GlxApplication.h
  2. 4
      src/Platform/XEglApplication.h
  3. 8
      src/SceneGraph/AbstractTranslation.h

4
src/Platform/GlxApplication.h

@ -78,9 +78,11 @@ class GlxApplication: public AbstractXApplication {
protected: protected:
/* Nobody will need to have (and delete) GlxApplication*, thus this is /* Nobody will need to have (and delete) GlxApplication*, thus this is
faster than public pure virtual destructor */ faster than public pure virtual destructor */
~GlxApplication() = default; ~GlxApplication();
}; };
GlxApplication::~GlxApplication() = default;
/** @hideinitializer /** @hideinitializer
@brief Entry point for GLX-based applications @brief Entry point for GLX-based applications
@param className Class name @param className Class name

4
src/Platform/XEglApplication.h

@ -79,9 +79,11 @@ class XEglApplication: public AbstractXApplication {
protected: protected:
/* Nobody will need to have (and delete) XEglApplication*, thus this is /* Nobody will need to have (and delete) XEglApplication*, thus this is
faster than public pure virtual destructor */ faster than public pure virtual destructor */
~XEglApplication() = default; ~XEglApplication();
}; };
XEglApplication::~XEglApplication() = default;
/** @hideinitializer /** @hideinitializer
@brief Entry point for X/EGL-based applications @brief Entry point for X/EGL-based applications
@param className Class name @param className Class name

8
src/SceneGraph/AbstractTranslation.h

@ -51,7 +51,7 @@ template<UnsignedInt dimensions, class T, class TranslationType>
#endif #endif
class AbstractTranslation: public AbstractTransformation<dimensions, T> { class AbstractTranslation: public AbstractTransformation<dimensions, T> {
public: public:
explicit AbstractTranslation() = default; explicit AbstractTranslation();
/** /**
* @brief Translate object * @brief Translate object
@ -68,7 +68,7 @@ class AbstractTranslation: public AbstractTransformation<dimensions, T> {
} }
protected: protected:
~AbstractTranslation() = default; ~AbstractTranslation();
#ifdef DOXYGEN_GENERATING_OUTPUT #ifdef DOXYGEN_GENERATING_OUTPUT
protected: protected:
@ -79,6 +79,10 @@ class AbstractTranslation: public AbstractTransformation<dimensions, T> {
virtual void doTranslate(const typename DimensionTraits<dimensions, TranslationType>::VectorType& vector, TransformationType type) = 0; virtual void doTranslate(const typename DimensionTraits<dimensions, TranslationType>::VectorType& vector, TransformationType type) = 0;
}; };
template<UnsignedInt dimensions, class T, class TranslationType> AbstractTranslation<dimensions, T, TranslationType>::AbstractTranslation() = default;
template<UnsignedInt dimensions, class T, class TranslationType> AbstractTranslation<dimensions, T, TranslationType>::~AbstractTranslation() = 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