It appears that Eigen::Ref<>
, introduced in Eigen 3.2, and std::reference_wrapper<>
introduced in C++11 accomplish very similar goals.
Obviously, the Eigen::Ref<>
does not introduce a C++11 dependency, as std::reference_wrapper<> does, but what else should be considered? (For me, C++11 dependency is not a concern.)
Here are the references: (so meta, LOL):