Re: Templates question
Re: Templates question
- Subject: Re: Templates question
- From: Ladd Van Tol <email@hidden>
- Date: Sun, 25 Feb 2007 20:27:57 -0800
On Feb 25, 2007, at 2:09 AM, David Fang wrote:
Hi Ladd,
Try this:
class Tapir
{
int getSomething() const;
CrazyTemplate<int, Tapir, &Tapir::getSomething> flyingAlpaca;
};
Semantically, pointer-to-members have always been allowed in
templates.
Syntactically, I'm not certain if member functions are required to be
qualified, that is, I'm not sure if your original version is
standard, or
if gcc is just failing to pick it up. Better find a language lawyer.
(IANALL) :)
Huh, interesting. Another shining example from the venerable
tradition of useless template error messages. ;)
- Ladd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden