[xsd-users] no abstract base classes with "Customizing the generated type — the complex case"

Oliver Schneider xsd-users at oli-obk.de
Mon Jul 28 04:49:04 EDT 2014


Hi,

I followed the instructions at
http://wiki.codesynthesis.com/Tree/Customization_guide#Customizing_the_generated_type_.E2.80.94_the_complex_case

The only change is that i made person_impl abstract (in xsd and
"people-custom.hxx") by declaring

virtual void print (std::ostream&) const = 0;

This caused the compilation to fail, since the _clone function of
superman_base will have the following content:

return new class superman_base (*this, f, c);

which can never, and should never be called, since no superman_base
instances should exist.

It would be great if true abstract base classes were possible in the future.

Greetings

Oliver Schneider



More information about the xsd-users mailing list