Browse Source

GCC 4.5 compatibility: cannot default function in class body.

Vladimír Vondruš 12 years ago
parent
commit
036963ea62
  1. 5
      src/Magnum/Platform/Implementation/EglContextHandler.h
  2. 1
      src/Magnum/Platform/Implementation/GlxContextHandler.h

5
src/Magnum/Platform/Implementation/EglContextHandler.h

@ -57,7 +57,7 @@ Used in XEglApplication.
*/ */
class EglContextHandler: public AbstractContextHandler<AbstractXApplication::Configuration, EGLNativeDisplayType, VisualId, EGLNativeWindowType> { class EglContextHandler: public AbstractContextHandler<AbstractXApplication::Configuration, EGLNativeDisplayType, VisualId, EGLNativeWindowType> {
public: public:
explicit EglContextHandler() = default; explicit EglContextHandler();
~EglContextHandler(); ~EglContextHandler();
VisualId getVisualId(EGLNativeDisplayType nativeDisplay) override; VisualId getVisualId(EGLNativeDisplayType nativeDisplay) override;
@ -78,6 +78,9 @@ class EglContextHandler: public AbstractContextHandler<AbstractXApplication::Con
EGLContext context; EGLContext context;
}; };
/* GCC 4.5 can't have this defaulted in class body */
EglContextHandler::EglContextHandler() = default;
}}} }}}
#endif #endif

1
src/Magnum/Platform/Implementation/GlxContextHandler.h

@ -69,6 +69,7 @@ class GlxContextHandler: public AbstractContextHandler<AbstractXApplication::Con
GLXContext context; GLXContext context;
}; };
/* GCC 4.5 can't have this defaulted in class body */
GlxContextHandler::GlxContextHandler() = default; GlxContextHandler::GlxContextHandler() = default;
}}} }}}

Loading…
Cancel
Save