how to call operator () in c++
- by anish
in c++ i have following code
class Foobar{
public:
Foobar * operator()(){
return new Foobar;
}
My quesion is how to call the ();
if i do Foobar foo() the constructor gets called
i am confused about behaviour of ()
can some explain me