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



How can I pass a member function from a C++ class 
to a xmlSAXHandler without making it static ?

I tried: 
   WorkSAXHandlerStruct.startDocument         = &ReadXML::startDocumentWork;

but gcc complains:

ReadXML.cc:28: cannot convert `void (ReadXML::*)(void*)' to `void (*)(void*)' 
   in assignment

May be there is a solution with mem_fun or other STL code ?


thomas
-- 



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