Why is C++ lambda implemented with functor instead of function pointer?

Viewed 1004

I found out that lambdas in both MSVC and GCC are functors implementing an operator(). What is the reason they prefer functor to function pointers?

3 Answers
Related