I have simple question, and yet i could not find any answer.
Let's say i have a function object:
template <typename T>
class MyFunctionObject {
private:
//...
public:
double operator()(T value) {
//...
return double_value;
}
}
What is the difference between those two "lines":
double value = MyFunctionObject <int> ()(1000);
and
MyFunctionObject <int> functor;
double value = functor(1000);