From b1d708b4fb5b23c0cb0db404e9f13e33a6ad0f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Dec 2013 00:49:55 +0100 Subject: [PATCH] MSVC 2013 compatibility: can't have anonymous typed enum in template class. I think I rather don't want to know in what shape the compiler implementation needs to be to have this kind of bugs. --- src/Shapes/AbstractShape.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Shapes/AbstractShape.h b/src/Shapes/AbstractShape.h index 0b708a02f..8371093f8 100644 --- a/src/Shapes/AbstractShape.h +++ b/src/Shapes/AbstractShape.h @@ -58,7 +58,11 @@ template class MAGNUM_SHAPES_EXPORT AbstractShape: publi #endif public: - enum: UnsignedInt { + enum + #ifndef CORRADE_MSVC2013_COMPATIBILITY + : UnsignedInt + #endif + { Dimensions = dimensions /**< Dimension count */ };