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

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

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

Loading…
Cancel
Save