Browse Source

Have consistent template order (first size, then type).

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
adb4d06b95
  1. 4
      src/TypeTraits.h

4
src/TypeTraits.h

@ -231,7 +231,7 @@ template<> struct TypeTraits<GLdouble>: public Math::MathTypeTraits<double> {
};
#endif
template<class T, std::size_t vectorSize> struct TypeTraits<Math::Vector<vectorSize, T>> {
template<std::size_t vectorSize, class T> struct TypeTraits<Math::Vector<vectorSize, T>> {
inline constexpr static Type type() { return TypeTraits<T>::type(); }
/* Can not be used for indices */
/* Can not be used for images */
@ -247,7 +247,7 @@ template<class T> struct TypeTraits<Math::Point3D<T>>: public TypeTraits<Math::V
template<class T> struct TypeTraits<Color3<T>>: public TypeTraits<Math::Vector<3, T>> {};
template<class T> struct TypeTraits<Color4<T>>: public TypeTraits<Math::Vector<4, T>> {};
template<class T, std::size_t matrixSize> struct TypeTraits<Math::Matrix<matrixSize, T>> {
template<std::size_t matrixSize, class T> struct TypeTraits<Math::Matrix<matrixSize, T>> {
inline constexpr static Type type() { return TypeTraits<T>::type(); }
/* Can not be used for indices */
/* Can not be used for images */

Loading…
Cancel
Save