Date: Sat, 28 Feb 1998 12:07:37 -0800 (PST) Message-Id: <199802282007.MAA15173@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: istvan AT outer-net DOT com (Steve Marton), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Problem with C++ and function pointers Precedence: bulk At 07:12 2/27/1998 GMT, Steve Marton wrote: >I'm trying to point to a member function of a class. But for some >reason, its address &Class::f is always 1. Even in Class::f1(){&f==1}. >That's the same for any member function. How come? How can I point to >it? Did you find this out by doing something like `cout << &f'? If so, the problem is not in the address at all, but is a known bug in the routine that prints it out. Try `cout << (unsigned)&f', or actually check the result of `&f == (void *)1' in the code. Nate Eldredge eldredge AT ap DOT net