R
Roshan Naik
Alf P. Steinbach said:* Roshan Naik:
That makes, if possible, even less sense.
Where did you get the idea that the above is "the" alternative?
I didnt use the "stress". There may be others and thats what I am looking
for. What I was conveying is ... the argument against functors based
solutions is that (in this case) it leads to more syntax all over the place,
as compared to ...
Other downsides :
- The functors based approach you mentioned requires virtual function table
based dispatching,
- Each usage of a function needs a object, plus the member function
pointer, plus the vtable jazz... unlike the plain functions approach which
would only requires a function pointer.
- Roshan