diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-10 11:53:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-10 11:53:35 +0200 |
commit | 87140ae9f841798752ae4e5422698a4090f16329 (patch) | |
tree | fa55c77eadbed14a160d34b7a03870cd3db3fc14 /libxsd/xsd/cxx/tree/type-serializer-map.hxx | |
parent | 2a700917616a2cc0e751adb76d8f71348a80b0d8 (diff) |
Omit instantiating serializers for abstract elements, similar to parsing
Diffstat (limited to 'libxsd/xsd/cxx/tree/type-serializer-map.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/type-serializer-map.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libxsd/xsd/cxx/tree/type-serializer-map.hxx b/libxsd/xsd/cxx/tree/type-serializer-map.hxx index 38b2fb9..50869b5 100644 --- a/libxsd/xsd/cxx/tree/type-serializer-map.hxx +++ b/libxsd/xsd/cxx/tree/type-serializer-map.hxx @@ -216,8 +216,11 @@ namespace xsd template<unsigned long id, typename C, typename T> struct element_serializer_initializer { + typedef typename type_serializer_map<C>::serializer serializer; + element_serializer_initializer (const C* root_name, const C* root_ns, - const C* subst_name, const C* subst_ns); + const C* subst_name, const C* subst_ns, + serializer); ~element_serializer_initializer (); |