Probably operator() and passing classes that have this operator implemented around.
For me it isn't better than function pointers, also because of method - function distinction we have 2 different incompatibile kinds of functions.
The operator() does not bring you any closer to functional programming. It's just syntactic sugar, maybe even nice sugar.
Re:Linus vs C++, again
by Daniel_Newby on Friday June 11, 2010 @04:04PM
(#1424562)
> Which aspects of functional programming are you talking about?
Passing around things that do work on other things -- easy with C++ worker objects, painful with C function pointers (or worse, pointers to structs full of function pointers).
Which aspects of functional programming are you talking about?