Skip to content
Snippets Groups Projects
Commit 60384c81 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

port lambda example to C++20 by fixing missing constness

parent d06f92c8
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ struct Generator {
template<class T>
struct sumsquare {
T operator()(T& s, T& a) { return s + a * a; };
T operator()(const T& s, const T& a) { return s + a * a; };
};
template<class T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment