diff --git a/src/TypeTraits.h b/src/TypeTraits.h index 5a1310502..08da1bf09 100644 --- a/src/TypeTraits.h +++ b/src/TypeTraits.h @@ -197,7 +197,7 @@ template<> struct TypeTraits: public Math::MathTypeTraits inline constexpr static std::size_t count() { return 1; } }; -template<> struct TypeTraits: public Math::MathTypeTraits { +template<> struct TypeTraits: public Math::MathTypeTraits { inline constexpr static Type type() { return Type::UnsignedInt; } inline constexpr static Type indexType() { return Type::UnsignedInt; } inline constexpr static AbstractImage::ComponentType imageType() { return AbstractImage::ComponentType::UnsignedInt; } @@ -205,7 +205,7 @@ template<> struct TypeTraits: public Math::MathTypeTraits inline constexpr static std::size_t count() { return 1; } }; -template<> struct TypeTraits: public Math::MathTypeTraits { +template<> struct TypeTraits: public Math::MathTypeTraits { inline constexpr static Type type() { return Type::Int; } /* Can not be used for indices */ inline constexpr static AbstractImage::ComponentType imageType() { return AbstractImage::ComponentType::Int; }