From 5ec4dff605fb6d1821a41e0819a5fdf180b72f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 8 Nov 2012 19:25:19 +0100 Subject: [PATCH] GCC 4.4 compatibility: no comparison of strongly typed enums. --- src/Context.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Context.h b/src/Context.h index d74630b15..35cdf7c65 100644 --- a/src/Context.h +++ b/src/Context.h @@ -200,7 +200,11 @@ class MAGNUM_EXPORT Context { * @see supportedVersion() */ inline bool isVersionSupported(Version version) const { + #ifndef CORRADE_GCC44_COMPATIBILITY return _version >= version; + #else + return static_cast(_version) >= static_cast(version); + #endif } /**