Commit 6be28865 authored by Davis King's avatar Davis King

Made example slightly clearer.

parent dd91dc35
......@@ -177,7 +177,7 @@ void example_using_lambda_functions()
struct function_object
{
function_object( std::vector<int>& vect ) : vect(vect) {}
function_object( std::vector<int>& vect_ ) : vect(vect_) {}
std::vector<int>& vect;
......@@ -190,7 +190,7 @@ struct function_object
struct function_object_sum
{
function_object_sum( const std::vector<int>& vect, int& sum_ ) : vect(vect), sum(sum_) {}
function_object_sum( const std::vector<int>& vect_, int& sum_ ) : vect(vect_), sum(sum_) {}
const std::vector<int>& vect;
int& sum;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment