[xsd-users] virtual insertion/extraction

Ray Lischner rlischner at proteus-technologies.com
Wed Feb 28 13:07:56 EST 2007


When I use --generate-polymorphic, xsd warns me that stream insertion/extraction operators are not yet polymorphism-aware. This is not surprising because these operators are templated, and virtual template member functions are not allowed. Nonetheless, is there some way to write virtual insertion functions? (Extraction is less important to us right now.) All I can think of is to force a specific template argument to xsd::cxx::tree::ostream, but even that requires that I be able to specify a block of code to add to every generated class.
 
Any suggestions on how I might proceed?
--
Ray Lischner, Proteus Technologies
 



More information about the xsd-users mailing list