RE: [xml] C++/Sax-Interface/member function

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.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]