Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62119 - trunk/boost/thread/detail
From: anthony_at_[hidden]
Date: 2010-05-21 11:19:09


Author: anthonyw
Date: 2010-05-21 11:19:06 EDT (Fri, 21 May 2010)
New Revision: 62119
URL: http://svn.boost.org/trac/boost/changeset/62119

Log:
Added support for BOOST_NO_IOSTREAM

Text files modified:
   trunk/boost/thread/detail/thread.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2010-05-21 11:19:06 EDT (Fri, 21 May 2010)
@@ -3,10 +3,12 @@
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
-// (C) Copyright 2007-8 Anthony Williams
+// (C) Copyright 2007-10 Anthony Williams
  
 #include <boost/thread/exceptions.hpp>
+#ifndef BOOST_NO_IOSTREAM
 #include <ostream>
+#endif
 #include <boost/thread/detail/move.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/xtime.hpp>
@@ -430,6 +432,7 @@
             return !(thread_data<y.thread_data);
         }
 
+#ifndef BOOST_NO_IOSTREAM
         template<class charT, class traits>
         friend std::basic_ostream<charT, traits>&
         operator<<(std::basic_ostream<charT, traits>& os, const id& x)
@@ -443,6 +446,7 @@
                 return os<<"{Not-any-thread}";
             }
         }
+#endif
     };
 
     inline bool thread::operator==(const thread& other) const


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