build fix.
* can't use min here, this header is not supposed to #include <algorithm>.
This commit is contained in:
parent
4e3137c085
commit
691e517bbd
@ -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)); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user