Browse Source

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.
pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
512021985e
  1. 8
      src/Magnum/SceneGraph/Object.h

8
src/Magnum/SceneGraph/Object.h

@ -304,7 +304,13 @@ template<class Transformation> class Object: public AbstractObject<Transformatio
*/
/* `objects` passed by copy intentionally (to allow move from
transformationMatrices() and avoid copy in the function itself) */
std::vector<typename Transformation::DataType> transformations(std::vector<std::reference_wrapper<Object<Transformation>>> objects, const typename Transformation::DataType& initialTransformation = typename Transformation::DataType()) const;
std::vector<typename Transformation::DataType> transformations(std::vector<std::reference_wrapper<Object<Transformation>>> objects, const typename Transformation::DataType& initialTransformation =
#ifndef CORRADE_MSVC2015_COMPATIBILITY /* I hate this inconsistency */
typename Transformation::DataType()
#else
Transformation::DataType()
#endif
) const;
/*@}*/

Loading…
Cancel
Save