Add StorageIndex type to easethe transition to 3.3.

This commit is contained in:
Gael Guennebaud 2016-04-13 15:09:39 +02:00
parent a432b017fb
commit 547a3c0d28

View File

@ -38,6 +38,7 @@ template<typename Derived> class SparseMatrixBase
typedef typename internal::packet_traits<Scalar>::type PacketScalar;
typedef typename internal::traits<Derived>::StorageKind StorageKind;
typedef typename internal::traits<Derived>::Index Index;
typedef typename internal::traits<Derived>::Index StorageIndex;
typedef typename internal::add_const_on_value_type_if_arithmetic<
typename internal::packet_traits<Scalar>::type
>::type PacketReturnType;