Add another missing string::compare method

* Makes our gcc2 slightly more C++98 compliant...
This commit is contained in:
Adrien Destugues 2015-11-12 22:08:23 +01:00
parent 6ae8d586ea
commit 4e3137c085

View File

@ -419,6 +419,8 @@ public:
{ return compare(str, pos, n); }
int compare (size_type pos, size_type n, const charT* s) const
{ return compare(s, pos, n); }
int compare (size_type pos, size_type n, const charT* s, size_type n2) const
{ return compare(s, pos, std::min(n, n2)); }
int compare (const charT* s, size_type pos = 0) const
{ return compare (s, pos, traits::length (s)); }