[xsd-users] polymorphism plus sequence equals slicing objects

Kroizman Guy kroiz at hyperroll.com
Sun Sep 9 15:44:38 EDT 2007


Hi, 
Is it possible to use polymorphism in a sequence?
because a sequence of a base elements is translated to:
vector<base>
and not:
vector<base*>
and then when (for instance) if we create a derived class from base and
push it to the vector it gets sliced.




More information about the xsd-users mailing list