metaprogramming solution to recursive function typedef ?

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
 
A

Alf P. Steinbach

* Roshan Naik:
[reasons Why It Can't Be Done Or Any Solution Is Inferior To No Solution]

To get you on track: think about functor objects containing function pointers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top