[xsd-users] rtti in headers

Kroizman Guy kroiz at hyperroll.com
Mon Jun 18 04:24:17 EDT 2007


I don't understand, why exceptions are not available when RTTI is
disables?
would you please elaborate?

On Sun, 2007-06-17 at 16:35 +0200, Boris Kolpackov wrote:
> Hi,
> 
> Kroizman Guy <kroiz at hyperroll.com> writes:
> 
> > Our Code is build without RTTI, and we wanna keep it this way.
> > We also want to use polymorphism in our XSD.
> > So we put the generated code in a library.
> > We rather this library would be static and not dynamically linked but
> > for that there must not be any RTTI dependent code in the header.
> >
> > can you please tell me if that is generally the case? or would we be
> > safer just using the lib as a dll?
> 
> I think either DLL or static library approach should work. Note that
> you will probably also need to wrap calls to parsing/serialization
> functions since they report errors with exceptions (and those are not
> available when RTTI is disabled).
> 
> hth,
> -boris




More information about the xsd-users mailing list