Skip to content

Commit

Permalink
build fix.
Browse files Browse the repository at this point in the history
* can't use min here, this header is not supposed to #include
  <algorithm>.
  • Loading branch information
pulkomandy committed Nov 12, 2015
1 parent 4e3137c commit 691e517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion headers/cpp/std/bastring.h
Expand Up @@ -420,7 +420,7 @@ class basic_string
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)); }

Expand Down

0 comments on commit 691e517

Please sign in to comment.