diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index 7c2c926..fb4dd9e 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -3441,7 +3441,7 @@ operator<<(std::basic_ostream& os, const basic_string::size_type n = s.size(); typename basic_string::size_type pad_len = 0; const bool left = (os.flags() & std::ios::left) != 0; - const std::size_t w = os.width(0); + const std::size_t w = static_cast(os.width(0)); std::basic_streambuf* buf = os.rdbuf(); if (w != 0 && n < w) @@ -3475,7 +3475,7 @@ operator>>(std::basic_istream& is, basic_string& ctype = std::use_facet >(is.getloc()); s.clear(); - std::size_t n = is.width(0); + std::size_t n = static_cast(is.width(0)); if (n == 0) n = static_cast(-1); else