| using namespace Eigen; | |
| void call_ref(Ref<VectorXf> a) { } | |
| void call_ref(const Ref<const VectorXf> &a) { } | |
| int main() | |
| { | |
| VectorXf a(10); | |
| call_ref(a+a); | |
| } | |
| using namespace Eigen; | |
| void call_ref(Ref<VectorXf> a) { } | |
| void call_ref(const Ref<const VectorXf> &a) { } | |
| int main() | |
| { | |
| VectorXf a(10); | |
| call_ref(a+a); | |
| } | |