diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-05 07:20:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-05 07:20:29 +0200 |
commit | 059dada584c1516571b0ade3cfb1f091cdca700b (patch) | |
tree | 2a791b4f783fa9d155606c9c8c565938c4adb449 /libxsd | |
parent | 7759eabefab89dfe5adf0c9b33bc820e82e03b7e (diff) |
Remove unnecessary comparison operator overload
While normally harmless, it causes ambiguity if we use string mapping
that does not derive from std::string (e.g., to work around VC++ DLL
export mess).
Diffstat (limited to 'libxsd')
-rw-r--r-- | libxsd/xsd/cxx/tree/elements.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/tree/elements.hxx b/libxsd/xsd/cxx/tree/elements.hxx index b36f4fd..8a6c433 100644 --- a/libxsd/xsd/cxx/tree/elements.hxx +++ b/libxsd/xsd/cxx/tree/elements.hxx @@ -1838,11 +1838,18 @@ namespace xsd return s < table_[i]; } + // This overload shouldn't be necessary according to the standard + // and removing it doesn't appear to trip any old compilers that + // we still support. But let's keeps preprocessed-out until we + // go C++11-only. + // +#if 0 bool operator() (std::size_t i, std::size_t j) const { return std::basic_string<C> (table_[i]) < table_[j]; } +#endif private: const C* const* table_; |