From 9757a0df843709910d49683c2b88478eb3604e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 6 Sep 2015 23:39:53 +0200 Subject: [PATCH] MSVC 2015 compatibility: you don't like <> too? Uh. --- src/Magnum/Shapes/AbstractShape.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/Shapes/AbstractShape.h b/src/Magnum/Shapes/AbstractShape.h index 04c22d1fe..dd5dd1a7f 100644 --- a/src/Magnum/Shapes/AbstractShape.h +++ b/src/Magnum/Shapes/AbstractShape.h @@ -51,7 +51,12 @@ This class is not directly instantiable, use @ref Shape instead. See @see @ref AbstractShape2D, @ref AbstractShape3D */ template class MAGNUM_SHAPES_EXPORT AbstractShape: public SceneGraph::AbstractGroupedFeature, Float> { + #ifndef CORRADE_MSVC2015_COMPATIBILITY friend const Implementation::AbstractShape& Implementation::getAbstractShape<>(const AbstractShape&); + #else + /* Otherwise it complains that this is not a function */ + template friend const Implementation::AbstractShape<_dimensions>& Implementation::getAbstractShape(const Shapes::AbstractShape<_dimensions>&); + #endif public: enum: UnsignedInt {