mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Made example slightly clearer.
This commit is contained in:
parent
dd91dc3581
commit
6be288652a
@ -177,7 +177,7 @@ void example_using_lambda_functions()
|
|||||||
|
|
||||||
struct function_object
|
struct function_object
|
||||||
{
|
{
|
||||||
function_object( std::vector<int>& vect ) : vect(vect) {}
|
function_object( std::vector<int>& vect_ ) : vect(vect_) {}
|
||||||
|
|
||||||
std::vector<int>& vect;
|
std::vector<int>& vect;
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ struct function_object
|
|||||||
|
|
||||||
struct function_object_sum
|
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;
|
const std::vector<int>& vect;
|
||||||
int& sum;
|
int& sum;
|
||||||
|
Loading…
Reference in New Issue
Block a user