A
anderberg
Consider the following code,
#include <iostream>
struct Functor {
void operator()(void) { std::cout << "Functor" << std::endl; }
};
int
main(void)
{
Functor();
return 0;
}
Why isn't operator() called for the temporary object that's created?
#include <iostream>
struct Functor {
void operator()(void) { std::cout << "Functor" << std::endl; }
};
int
main(void)
{
Functor();
return 0;
}
Why isn't operator() called for the temporary object that's created?