浏览代码

missing template, why did only AppVeyor catch this? and not Trevor?

Former-commit-id: a02693fb8455a758037e474b4cf11a89be26823b
Alec Jacobson 9 年之前
父节点
当前提交
9a62ff9d34
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/igl/isdiag.cpp

+ 5 - 0
include/igl/isdiag.cpp

@@ -25,3 +25,8 @@ IGL_INLINE bool igl::isdiag(const Eigen::SparseMatrix<Scalar> & A)
   return true;
 }
 
+
+#ifdef IGL_STATIC_LIBRARY
+// Explicit template specialization
+template bool igl::isdiag<double>(class Eigen::SparseMatrix<double,0,int> const &);
+#endif