#include "../Eigen/Sparse" using namespace StormEigen; void call_ref(Ref > a) { } int main() { SparseMatrix a(10,10); SparseMatrixBase > &ac(a); #ifdef EIGEN_SHOULD_FAIL_TO_BUILD call_ref(ac); #else call_ref(ac.derived()); #endif }