[xsd-users] Polymorphic problems.

Boris Kolpackov boris at codesynthesis.com
Wed Dec 3 03:18:09 EST 2008


Hi Bill,

Bill Pringlemeir <bpringle at sympatico.ca> writes:

> The custom implementation of batman_base seems to mix batman and
> batman_base in the static initializers.  

Yes, this is exactly what happens. We register batman_base in the
parsing map and batman in the serialization map and, as a result,
typeid's don't match. This is definitely a bug and I fixed it for
the next release of XSD. If your would like, I can build you a pre-
release binary(ies) with the fix. Just let me know which platform(s)
you need.

Thanks for your help in getting to the bottom of this!

Boris

P.S. At the end of supermen_wrapper.cxx you have this code fragment
which is not needed:

#include <ostream>
#include <xsd/cxx/xml/dom/serialization-source.hxx>
#include <xsd/cxx/tree/error-handler.hxx>

#include <xsd/cxx/tree/type-serializer-map.hxx>

namespace _xsd
{
  static
  const ::xsd::cxx::tree::type_serializer_plate< 0, char >
  type_serializer_plate_init;
}




More information about the xsd-users mailing list