I have seen many answers on SO asking about capturing this by reference but I have a different question. What if I want to capture a specific variable owned by this object?
For example:
auto rel_pose = [this->_last_pose["main_pose"],&pose](Eigen::VectorXd pose1, Eigen::VectorXd pose2)
{
// Some code
return pose;
};
I want to capture the specific variable of this by value and use it inside my lambda expression. Why this is not possible?