From 9743d2abf3233bb265357fd3ccd3310b9ab2a662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 11 Jan 2014 13:39:21 +0100 Subject: [PATCH] SceneGraph: fixed compilation of Drawable on GCC 4.6. This error was present since the very beginning but it didn't appear until we were explicitly instantiating the Drawable class. --- src/Magnum/SceneGraph/Drawable.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Magnum/SceneGraph/Drawable.h b/src/Magnum/SceneGraph/Drawable.h index 4eafef45c..a26dbb025 100644 --- a/src/Magnum/SceneGraph/Drawable.h +++ b/src/Magnum/SceneGraph/Drawable.h @@ -147,12 +147,20 @@ template class Drawable: public AbstractGrouped * If the drawable doesn't belong to any group, returns `nullptr`. */ DrawableGroup* drawables() { + #ifndef CORRADE_GCC46_COMPATIBILITY return AbstractGroupedFeature, T>::group(); + #else + return static_cast*>(AbstractGroupedFeature, T>::group()); + #endif } /** @overload */ const DrawableGroup* drawables() const { + #ifndef CORRADE_GCC46_COMPATIBILITY return AbstractGroupedFeature, T>::group(); + #else + return static_cast*>(AbstractGroupedFeature, T>::group()); + #endif } /**