Browse Source

MSVC 2015 compatibility: {}-related issues.

pull/118/head
Vladimír Vondruš 11 years ago
parent
commit
06a1734b86
  1. 3
      src/Magnum/Math/DualComplex.h
  2. 3
      src/Magnum/Math/DualQuaternion.h

3
src/Magnum/Math/DualComplex.h

@ -157,7 +157,8 @@ template<class T> class DualComplex: public Dual<Complex<T>> {
*/
template<class U> constexpr explicit DualComplex(const DualComplex<U>& other)
#ifndef DOXYGEN_GENERATING_OUTPUT
: Dual<Complex<T>>{other}
/* MSVC 2015 can't handle {} here */
: Dual<Complex<T>>(other)
#endif
{}

3
src/Magnum/Math/DualQuaternion.h

@ -201,7 +201,8 @@ template<class T> class DualQuaternion: public Dual<Quaternion<T>> {
*/
constexpr /*implicit*/ DualQuaternion(const Dual<Vector3<T>>& vector, const Dual<T>& scalar)
#ifndef DOXYGEN_GENERATING_OUTPUT
: Dual<Quaternion<T>>{{vector.real(), scalar.real()}, {vector.dual(), scalar.dual()}}
/* MSVC 2015 can't handle {} here */
: Dual<Quaternion<T>>({vector.real(), scalar.real()}, {vector.dual(), scalar.dual()})
#endif
{}

Loading…
Cancel
Save