#include "../Eigen/Core" using namespace StormEigen; void call_ref(Ref a) { } int main() { VectorXf a(10); DenseBase &ac(a); #ifdef EIGEN_SHOULD_FAIL_TO_BUILD call_ref(ac); #else call_ref(ac.derived()); #endif }