Browse Source

GCC 4.5 compatibility: 4.5 and >4.5 have mutually exclusive requirements.

Vladimír Vondruš 13 years ago
parent
commit
08c36ab6e5
  1. 8
      src/AbstractImage.h

8
src/AbstractImage.h

@ -81,7 +81,13 @@ class MAGNUM_EXPORT AbstractImage {
std::size_t pixelSize() const { return pixelSize(_format, _type); }
protected:
/* GCC > 4.5 needs to have `= default` in class body, otherwise can't
use constexpr */
#ifndef CORRADE_GCC45_COMPATIBILITY
~AbstractImage() = default;
#else
~AbstractImage();
#endif
#ifdef DOXYGEN_GENERATING_OUTPUT
private:
@ -92,8 +98,10 @@ class MAGNUM_EXPORT AbstractImage {
ImageType _type;
};
#ifdef CORRADE_GCC45_COMPATIBILITY
/* GCC 4.5 doesn't take `= default` as inline */
inline AbstractImage::~AbstractImage() = default;
#endif
}

Loading…
Cancel
Save