Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot bind non-const lvalue reference to an rvalue #19

Open
pengxutao opened this issue May 9, 2023 · 0 comments
Open

cannot bind non-const lvalue reference to an rvalue #19

pengxutao opened this issue May 9, 2023 · 0 comments

Comments

@pengxutao
Copy link

Hello, here is an error in

virtual void ComputeUnaryPotentialWithoutCheck(const cv::Rect& filterRect, const cv::Rect& targetRect, const cv::Mat& costs, const Plane& plane, Reusable& reusable = Reusable(), int mode = 0) const {};

because Reusable() is a rvalue, which cannot be used to initialize a non-const lvalue reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant