From 512021985e58d624241649feddddbf14dfc66bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 6 Sep 2015 21:44:40 +0200 Subject: [PATCH] MSVC 2015 compatibility: annoying inconsistencies. What is right on sane compilers gives an error on MSVC and what MSVC accepts is in no way the right thing. --- src/Magnum/SceneGraph/Object.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Magnum/SceneGraph/Object.h b/src/Magnum/SceneGraph/Object.h index 9b7dc2c32..26913b822 100644 --- a/src/Magnum/SceneGraph/Object.h +++ b/src/Magnum/SceneGraph/Object.h @@ -304,7 +304,13 @@ template class Object: public AbstractObject transformations(std::vector>> objects, const typename Transformation::DataType& initialTransformation = typename Transformation::DataType()) const; + std::vector transformations(std::vector>> objects, const typename Transformation::DataType& initialTransformation = + #ifndef CORRADE_MSVC2015_COMPATIBILITY /* I hate this inconsistency */ + typename Transformation::DataType() + #else + Transformation::DataType() + #endif + ) const; /*@}*/