build fix.

* can't use min here, this header is not supposed to #include
  <algorithm>.
This commit is contained in:
Adrien Destugues 2015-11-12 22:24:16 +01:00
parent 4e3137c085
commit 691e517bbd

View File

@ -420,7 +420,7 @@ public:
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)); }
{ if (n > n2) n = n2; return compare(s, pos, n); }
int compare (const charT* s, size_type pos = 0) const
{ return compare (s, pos, traits::length (s)); }