[xsd-users] skeleton does not compile with expat in parser_auto_ptr

Andrea Rigoni rigoni at igi.cnr.it
Thu Aug 6 11:16:20 EDT 2015


Hello list,
 I'm new to xsd parser, I've tried to follow the simple tutorial in:
http://www.codesynthesis.com/projects/xsd/documentation/cxx/parser/guide/#2

Anyway I found that the code was not compiling.
I fix it adding this this two operators to the parser_auto_ptr class in
expat/elements.hpp

        operator const bool () const { return parser_ != 0; }
        operator const XML_Parser & () const { return parser_; }

Was this the right way ?

Thanks,

Andrea Rigoni


More information about the xsd-users mailing list