From 72d4cfb0a3806ada247b9dd583d06e1ebe04d046 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 23 Oct 2009 07:35:46 +0200 Subject: Generate the static polymorphic() function in aggregates --- NEWS | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 47d6fb2..04dbd32 100644 --- a/NEWS +++ b/NEWS @@ -8,8 +8,17 @@ Version 3.2.0 * New configuration parameter, XSDE_STL_ITERATOR, makes iterators provided by the mapping conform to the STL requirements. This - feature requires working header and allows you to use - the standard algorithms such as find_if, etc. + feature requires working header and allows you to use the + standard algorithms such as find_if, etc. + + * When the code is generated with the --generate-polymorphic or + --runtime-polymorphic option, the resulting parser and serializer + aggregate classes provide the static polymorphic() function which + returns true if the object model corresponding to the root element + or root type is polymorphic and false otherwise. This can be used + together with the XSDE_POLYMORPHIC macro to implement generic parsing + and serialization code that works with both polymorphic and non- + polymorphic object models. Version 3.1.0 -- cgit v1.1