diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 15:25:44 +0200 |
commit | 8286ac511144e4f17d34eac9affb97e50646344a (patch) | |
tree | f1af7320d7b6be6be059216d0ad08ac7b4f73fd0 /xsd/libxsd/xsd/cxx/tree/comparison-map.txx | |
parent | a15cf65c44d5c224169c32ef5495b68c758134b7 (diff) |
Imported Upstream version 4.0.0upstream/4.0.0
Diffstat (limited to 'xsd/libxsd/xsd/cxx/tree/comparison-map.txx')
-rw-r--r-- | xsd/libxsd/xsd/cxx/tree/comparison-map.txx | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/xsd/libxsd/xsd/cxx/tree/comparison-map.txx b/xsd/libxsd/xsd/cxx/tree/comparison-map.txx index e638ed4..af23d64 100644 --- a/xsd/libxsd/xsd/cxx/tree/comparison-map.txx +++ b/xsd/libxsd/xsd/cxx/tree/comparison-map.txx @@ -1,6 +1,5 @@ // file : xsd/cxx/tree/comparison-map.txx -// author : Boris Kolpackov <boris@codesynthesis.com> -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #include <xsd/cxx/tree/types.hxx> @@ -20,18 +19,17 @@ namespace xsd // anyType and anySimpleType. // - //register_type ( - // typeid (type), - // &comparator_impl<type>, - // false); - - typedef simple_type<type> simple_type; + register_type ( + typeid (type), + &comparator_impl<type>, + false); - //register_type ( - // typeid (simple_type), - // &comparator_impl<simple_type>, - // false); + typedef simple_type<C, type> simple_type; + register_type ( + typeid (simple_type), + &comparator_impl<simple_type>, + false); // Strings // @@ -212,9 +210,9 @@ namespace xsd template <typename C> void comparison_map<C>:: - register_type (const type_id& tid, comparator c, bool override) + register_type (const type_id& tid, comparator c, bool replace) { - if (override || type_map_.find (&tid) == type_map_.end ()) + if (replace || type_map_.find (&tid) == type_map_.end ()) type_map_[&tid] = c; } |