瀏覽代碼

compile with gcc, missing typename

Former-commit-id: 263eeaefeb5b375f30dd4f0aadbb58c7532fcdb8
Alec Jacobson 10 年之前
父節點
當前提交
06cfd5d753
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
     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)
       // 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();
       return 3*size+(sizeof(T)+2*size)*obj.nonZeros();
     }
     }