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


On Jan 12, 2000, Gary Beckmann <gary@radionics.com> 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
> breakpoints in the code confirms that the wrong function is being
> called. 

Can you please post a simpler code snippet that demonstrates the
problem?  It seems that your message has lost some headers somehow,
because the attachment doesn't show up as such at my end.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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