Ticket #4060: boost_thread_detail_BOOST_NO_IOSTREAM.diff
File boost_thread_detail_BOOST_NO_IOSTREAM.diff, 869 bytes (added by , 13 years ago) |
---|
-
thread.hpp
6 6 // (C) Copyright 2007-8 Anthony Williams 7 7 8 8 #include <boost/thread/exceptions.hpp> 9 #ifndef BOOST_NO_IOSTREAM 9 10 #include <ostream> 11 #endif 10 12 #include <boost/thread/detail/move.hpp> 11 13 #include <boost/thread/mutex.hpp> 12 14 #include <boost/thread/xtime.hpp> … … 430 432 return !(thread_data<y.thread_data); 431 433 } 432 434 435 #ifndef BOOST_NO_IOSTREAM 433 436 template<class charT, class traits> 434 437 friend std::basic_ostream<charT, traits>& 435 438 operator<<(std::basic_ostream<charT, traits>& os, const id& x) … … 443 446 return os<<"{Not-any-thread}"; 444 447 } 445 448 } 449 #endif 446 450 }; 447 451 448 452 inline bool thread::operator==(const thread& other) const