---------- Forwarded Message ----------
Subject: Re: SigC++ related cxx error
Date: 23 Jun 2000 19:03:47 +0200
From: Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
JMarc> I have come up with the following example to demonstrate what
JMarc> happens. Lars, is it right? If it is, I'll ask on comp.lang.c++
JMarc> and the tru64 group.
Angus> Well, where is it? A.
Hmm, did I forget it? Time to leave for the week end, it seems...
JMarc
template <class T> void func(void (T::*f)(int) ) {;}
class Foo {
private:
class Pimpl {
void bar(int);
Pimpl() {
// this is supposed to be the right way
func(&Foo::Pimpl::bar);
// this almost works
func(&bar);
}
};
};
-------------------------------------------------------