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 {