From 547c562464bda840da7fb23c74386f1f13215894 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 26 May 2013 15:52:16 +0000 Subject: [PATCH] Minor change (no need to create a sentry, it will be created by the stream methods). [SVN r84513] --- include/boost/utility/string_ref.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/utility/string_ref.hpp b/include/boost/utility/string_ref.hpp index 1bab84c..8e804c5 100644 --- a/include/boost/utility/string_ref.hpp +++ b/include/boost/utility/string_ref.hpp @@ -408,8 +408,7 @@ namespace boost { template inline std::basic_ostream& operator<<(std::basic_ostream& os, const basic_string_ref& str) { - typename std::basic_ostream::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);