问题描述
我将特征矩阵传递给构造函数。根据 Eigen 文档,使用了 pass by const reference。
但是,clang-tidy 建议采用现代化的价值和移动方式:
warning: pass by value and use std::move [modernize-pass-by-value]
Foo::Foo(const Eigen::Vector3d& bar) : bar_(bar) {};
^~~~~~~~~~~~~~~~~~~~~~
Eigen::Vector3d std::move( )
按值传递和移动可以与 Eigen 一起使用吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)