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
Avoid variable template in hp::Refinement #9186
Conversation
/rebuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK if you mark the two variables as const
.
ComparisonFunction<Number> compare_false = | ||
[](const Number &, const Number &) { return false; }; | ||
ComparisonFunction<Number> compare_true = | ||
[](const Number &, const Number &) { return true; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make these const
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
As a complete aside, it's not that the thing is a generic lambda (which would be a structure with a Either way, the change is of course correct -- thanks for tackling it! |
d79f601
to
0152465
Compare
Yes, you are right. |
Fixes the failing build in https://cdash.43-1.org/viewBuildError.php?onlydeltap&buildid=3370.
Generic lambdas are a C++14 feature.