Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Storing a pointer to a member function in a static member

0 views
Skip to first unread message

Ian Collins

unread,
Jun 14, 2001, 3:00:26 AM6/14/01
to
Jonathan Cox wrote:
>[snip]
>
> I was hoping that someone might be able to tell me: -
>
> 1) Which is the correct behaviour for the standard?
> 2) Is there a way to make GCC conform to at least the other two
> compilers?
>
> Regards
> Jonathan

I've been bitten by this one as well. I _think_ gcc is wrong here, the
same error is raised when taking the address of a member fn in another
(of the same class).

The compiler should be able to determine the correct scope in both these
cases.

The only workaround is to used the verbose form that keeps gcc happy.

Ian

--
Ian Collins
Masuma Ltd,
Christchurch
New Zealand.

0 new messages