diff options
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; } |