Browse Source

compile with gcc, missing typename

Former-commit-id: 263eeaefeb5b375f30dd4f0aadbb58c7532fcdb8
Alec Jacobson 10 years ago
parent
commit
06cfd5d753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/serialize.h

+ 1 - 1
include/igl/serialize.h

@@ -936,7 +936,7 @@ namespace igl
     inline size_t getByteSize(const Eigen::SparseMatrix<T,P,I>& obj)
     {
       // space for numbers of rows,cols,nonZeros and tripplets with data (rowIdx,colIdx,value)
-      size_t size = sizeof(Eigen::SparseMatrix<T,P,I>::Index);
+      size_t size = sizeof(typename Eigen::SparseMatrix<T,P,I>::Index);
       return 3*size+(sizeof(T)+2*size)*obj.nonZeros();
     }