diff --git a/include/boost/algorithm/string_ref.hpp b/include/boost/algorithm/string_ref.hpp index 843d160..ff1a5f8 100644 --- a/include/boost/algorithm/string_ref.hpp +++ b/include/boost/algorithm/string_ref.hpp @@ -158,7 +158,7 @@ namespace boost { } int compare(basic_string_ref x) const { - int cmp = traits::compare ( ptr_, x.ptr_, std::min(len_, x.len_)); + int cmp = traits::compare ( ptr_, x.ptr_, (std::min)(len_, x.len_)); return cmp != 0 ? cmp : ( len_ == x.len_ ? 0 : len_ < x.len_ ? -1 : 1 ); } @@ -386,4 +386,4 @@ namespace std { } #endif -#endif \ No newline at end of file +#endif