Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76011 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2011-12-17 04:02:11


Author: viboes
Date: 2011-12-17 04:02:10 EST (Sat, 17 Dec 2011)
New Revision: 76011
URL: http://svn.boost.org/trac/boost/changeset/76011

Log:
Thread: #4048 thread::id formatting: use ios_flags_saver
Text files modified:
   trunk/boost/thread/detail/thread.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2011-12-17 04:02:10 EST (Sat, 17 Dec 2011)
@@ -24,6 +24,7 @@
 #include <memory>
 #include <boost/utility/enable_if.hpp>
 #include <boost/type_traits/remove_reference.hpp>
+#include <boost/io/ios_state.hpp>
 
 #include <boost/config/abi_prefix.hpp>
 
@@ -444,6 +445,7 @@
         {
             if(x.thread_data)
             {
+ io::ios_flags_saver ifs( os );
                 return os<< std::hex << x.thread_data;
             }
             else


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