Minor change (no need to create a sentry, it will be created by the stream methods).

[SVN r84513]
This commit is contained in:
Andrey Semashev
2013-05-26 15:52:16 +00:00
parent 91aab126e1
commit 547c562464

View File

@@ -408,8 +408,7 @@ namespace boost {
template<class charT, class traits>
inline std::basic_ostream<charT, traits>&
operator<<(std::basic_ostream<charT, traits>& os, const basic_string_ref<charT,traits>& str) {
typename std::basic_ostream<charT, traits>::sentry guard(os);
if (guard) {
if (os.good()) {
const std::size_t size = str.size();
const std::size_t w = static_cast< std::size_t >(os.width());
os.width(0);