Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84513 - trunk/boost/utility
From: andrey.semashev_at_[hidden]
Date: 2013-05-26 11:52:17


Author: andysem
Date: 2013-05-26 11:52:16 EDT (Sun, 26 May 2013)
New Revision: 84513
URL: http://svn.boost.org/trac/boost/changeset/84513

Log:
Minor change (no need to create a sentry, it will be created by the stream methods).
Text files modified:
   trunk/boost/utility/string_ref.hpp | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/boost/utility/string_ref.hpp
==============================================================================
--- trunk/boost/utility/string_ref.hpp (original)
+++ trunk/boost/utility/string_ref.hpp 2013-05-26 11:52:16 EDT (Sun, 26 May 2013)
@@ -408,8 +408,7 @@
     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);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk