This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ choosing wrong function for Xt callback


Gary Beckmann wrote:
> A convention introduced by Young for dealing with callbacks from X11
> in C++ involves using an overload of a static member function and a
> member function.  The "this" pointer is passed as the client data.
> Unfortunately the version of egcs I have seems to ignore the static
> member function and willfully use the wrong function.  Setting
Try with gcc 2.95.2, I recall several of bugs of this kind being
removed.

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
Never hand someone a gun unless you are sure where they will point it
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]