[Expat-discuss] c++-ize expat
Fred L. Drake, Jr.
fdrake at acm.org
Tue Jun 24 09:47:06 EDT 2003
> I am wondering whether it is possible to c++-ize expat's code so
> that it could be compiled with c++ compiler. The reason for this
> is the ability to throw exceptions from callback functions. I have
> to remove all the 'extern "C"' stuff from expat code and cast all
> the void* to FILE* and so on.. Could this be done in the default
> expat's code? Thanks.. michal
It's not at all clear what you need. Expat is a C library, but most
of the C++ compilers out there should be fairly happy with it. We
normally build it with support for C++ exceptions, so I don't
understand what you're having problems with.
Please be more specific; it'll be easier to help.
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Expat-discuss