From b95878a57a7894ed6eaf7f615fe02ea1cb2165d0 Mon Sep 17 00:00:00 2001 From: Dan Eble Date: Sat, 8 Aug 2015 18:22:54 -0400 Subject: [PATCH] Issue 4546: don't redefine comparison operators for std::string --- flower/include/rational.hh | 1 + flower/include/std-string.hh | 5 ----- flower/std-string.cc | 6 ------ 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/flower/include/rational.hh b/flower/include/rational.hh index 253e09f4cc..f829e531ec 100644 --- a/flower/include/rational.hh +++ b/flower/include/rational.hh @@ -20,6 +20,7 @@ #ifndef RATIONAL_HH #define RATIONAL_HH +#include "compare.hh" #include "flower-proto.hh" #include "std-string.hh" #include diff --git a/flower/include/std-string.hh b/flower/include/std-string.hh index 651f3403a1..0a34d05049 100644 --- a/flower/include/std-string.hh +++ b/flower/include/std-string.hh @@ -20,7 +20,6 @@ #ifndef STD_STRING_HH #define STD_STRING_HH -#include "compare.hh" #include "flower-proto.hh" #if 0 @@ -55,8 +54,4 @@ string &replace_all (string *str, string const &find, string const &replace); string &replace_all (string *str, char find, char replace); char *string_copy (const string &s); -int string_compare (string const &, string const &); - -INSTANTIATE_COMPARE (string const &, string_compare); - #endif /* STD_STRING_HH */ diff --git a/flower/std-string.cc b/flower/std-string.cc index 347f0f3688..9666b9e9c3 100644 --- a/flower/std-string.cc +++ b/flower/std-string.cc @@ -116,12 +116,6 @@ string_copy (const string &s) return dest; } -int -string_compare (string const &a, string const &b) -{ - return a.compare (b); -} - #include "std-vector.hh" vector -- 2.39.2