1 #include "../Eigen/Sparse" 2 3 using namespace Eigen; 4 5 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD call_ref(Ref<SparseMatrix<float>> a)6void call_ref(Ref<SparseMatrix<float> > a) { } 7 #else call_ref(const Ref<const SparseMatrix<float>> & a)8void call_ref(const Ref<const SparseMatrix<float> > &a) { } 9 #endif 10 main()11int main() 12 { 13 SparseMatrix<float> a(10,10); 14 call_ref(a+a); 15 } 16