Re:C++: Uniquely addressed
by hun-nemethpeter on Sunday May 31, 2015 @01:38PM
(#9634854)
In the first example sum_f() was declared with two parameter but used with zero param.
[ Parent
| on HN ]
No, sum_f is a functor, only its operator() is overloaded to receive 2 parameters, the constructor of the struct is a default constructor that takes no argument.
http://www.cprogramming.com/tutorial/functors-function-objec...
Re:C++: Uniquely addressed
by hun-nemethpeter on Sunday May 31, 2015 @04:37PM
(#9635444)
Oops.. Yes, you are right.