Re: "Function template" problem

From: Gernot Frisch (Me_at_Privacy.net)
Date: 09/30/04


Date: Thu, 30 Sep 2004 15:53:00 +0200


> return a.template eval<F>();

WTF? Never seen C++ like this before. Now, this is totally insane.
Let me get this in my hamster brain:
F is a function of type: double()(double).
And class A's got a member:
template<ftype F> double eval();

Now, class B has a function that will call a 'eval' of an 'A' object
er... No. I'm too stupid. Honestly, can anyone please give me a like
to what you did here?