Make index type of Triplet default to SparseMatrix::Index as suggested by Kolja Brix. Fixes bug #665.

This commit is contained in:
Christoph Hertzberg 2013-10-16 13:08:09 +02:00
parent b433fb2857
commit 4a42843513

View File

@ -143,7 +143,7 @@ template<typename T> struct plain_matrix_type<T,Sparse>
*
* \sa SparseMatrix::setFromTriplets()
*/
template<typename Scalar, typename Index=unsigned int>
template<typename Scalar, typename Index=typename SparseMatrix<Scalar>::Index >
class Triplet
{
public: