Hi all,
A very simple question, but I couldn't find a definitive answer in the literature. Functors provide you with the function call syntax:
may be a call to a functor. Now, what if I have a pointer to a functor instead? Is the following syntax the recommended, or perhaps the only, way to call operator() on a functor pointer:
Many thanks!
Regards,
Paul
A very simple question, but I couldn't find a definitive answer in the literature. Functors provide you with the function call syntax:
Code:
foo(1, 2, 3)
Code:
fooPtr->operator()(1, 2, 3)
Regards,
Paul
Comment