Hacker News new | ask | show | jobs
by vmarsy 4205 days ago
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...

1 comments

Oops.. Yes, you are right.