RE: [xml] C++/Sax-Interface/member function
- From: "Vakoc, Mark" <Mark_Vakoc jdedwards com>
- To: "'Thomas Porschberg'" <thomas porschberg osp-dd de>, "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] C++/Sax-Interface/member function
- Date: Thu, 23 May 2002 07:37:47 -0600
How can I pass a member function from a C++ class
to a xmlSAXHandler without making it static ?
You can't. Calling a C++ class member pushes a this pointer to the stack so
the function can access the class members. The function is therefore not
compatible with the C function. If you make the function static there is no
'this' pointer thus making the functions compatible.
] [Thread Prev