[xsd-users] no abstract base classes with "Customizing the generated type — the complex case"
Boris Kolpackov
boris at codesynthesis.com
Tue Aug 5 07:00:09 EDT 2014
Hi Oliver,
Oliver Schneider <xsd-users at oli-obk.de> writes:
> that would make the _clone function very dangerous.
True.
> I suggest leaving it in for using *_base as a member, and making it pure
> virtual when polymorphism is requested for the class. In the case of
> polymorphism, your are expecting that superman_impl is (implicitly)
> castable to person_impl. (at least that's how i understood the
> "person()" member function of the catalog class, i didn't test it).
Good point. I've implemented this logic and here is a binary:
http://codesynthesis.com/~boris/tmp/xsd/xsd-4.1.0.a2-i686-windows.zip
Let me know if there are still any issues.
Boris
More information about the xsd-users
mailing list