diff --git a/src/Framebuffer.h b/src/Framebuffer.h index 26a2029ea..2a8c6df8a 100644 --- a/src/Framebuffer.h +++ b/src/Framebuffer.h @@ -117,7 +117,11 @@ class MAGNUM_EXPORT Framebuffer: public AbstractFramebuffer { inline constexpr explicit ColorAttachment(UnsignedInt id): attachment(GL_COLOR_ATTACHMENT0 + id) {} #ifndef DOXYGEN_GENERATING_OUTPUT + #ifndef CORRADE_GCC44_COMPATIBILITY inline constexpr explicit operator GLenum() const { return attachment; } + #else + inline constexpr operator GLenum() const { return attachment; } + #endif #endif private: @@ -138,7 +142,11 @@ class MAGNUM_EXPORT Framebuffer: public AbstractFramebuffer { inline constexpr /*implicit*/ DrawAttachment(Framebuffer::ColorAttachment attachment): attachment(GLenum(attachment)) {} #ifndef DOXYGEN_GENERATING_OUTPUT + #ifndef CORRADE_GCC44_COMPATIBILITY inline constexpr explicit operator GLenum() const { return attachment; } + #else + inline constexpr operator GLenum() const { return attachment; } + #endif #endif private: @@ -175,7 +183,11 @@ class MAGNUM_EXPORT Framebuffer: public AbstractFramebuffer { inline constexpr /*implicit*/ BufferAttachment(Framebuffer::ColorAttachment attachment): attachment(GLenum(attachment)) {} #ifndef DOXYGEN_GENERATING_OUTPUT + #ifndef CORRADE_GCC44_COMPATIBILITY inline constexpr explicit operator GLenum() const { return attachment; } + #else + inline constexpr operator GLenum() const { return attachment; } + #endif #endif private: @@ -203,7 +215,11 @@ class MAGNUM_EXPORT Framebuffer: public AbstractFramebuffer { inline constexpr /*implicit*/ InvalidationAttachment(Framebuffer::ColorAttachment attachment): attachment(GLenum(attachment)) {} #ifndef DOXYGEN_GENERATING_OUTPUT + #ifndef CORRADE_GCC44_COMPATIBILITY inline constexpr explicit operator GLenum() const { return attachment; } + #else + inline constexpr operator GLenum() const { return attachment; } + #endif #endif private: diff --git a/src/Math/Complex.h b/src/Math/Complex.h index 2a2cb2349..484d24b26 100644 --- a/src/Math/Complex.h +++ b/src/Math/Complex.h @@ -172,7 +172,11 @@ template class Complex { * \boldsymbol v = \begin{pmatrix} a \\ b \end{pmatrix} * @f] */ + #ifndef CORRADE_GCC44_COMPATIBILITY inline constexpr explicit operator Vector2() const { + #else + inline constexpr operator Vector2() const { + #endif return {_real, _imaginary}; }