Re: "Function template" problem
From: Gernot Frisch (Me_at_Privacy.net)
Date: 09/30/04
- Next message: Gernot Frisch: "Re: copy of stream"
- Previous message: Rob Williscroft: "Re: Partial Spezialization of member function"
- In reply to: Markus Moll: "Re: "Function template" problem"
- Next in thread: Sharad Kala: "Re: "Function template" problem"
- Reply: Sharad Kala: "Re: "Function template" problem"
- Reply: Rob Williscroft: "Re: "Function template" problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Gernot Frisch: "Re: copy of stream"
- Previous message: Rob Williscroft: "Re: Partial Spezialization of member function"
- In reply to: Markus Moll: "Re: "Function template" problem"
- Next in thread: Sharad Kala: "Re: "Function template" problem"
- Reply: Sharad Kala: "Re: "Function template" problem"
- Reply: Rob Williscroft: "Re: "Function template" problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]