diff --git a/example/monitor.cpp b/example/monitor.cpp index 44d99aa3..a18e47d5 100644 --- a/example/monitor.cpp +++ b/example/monitor.cpp @@ -19,7 +19,7 @@ namespace { const int ITERS = 100; boost::mutex io_mutex; -} +} // namespace template class buffer_t diff --git a/example/starvephil.cpp b/example/starvephil.cpp index 1bd350c8..6ec9896c 100644 --- a/example/starvephil.cpp +++ b/example/starvephil.cpp @@ -51,8 +51,8 @@ public: { boost::mutex::scoped_lock lock(iomx); std::cout << "(" << clock() - << ") Chef: ouch ... make room ... this dish is very " - << "hot ..." << std::endl; + << ") Chef: ouch ... make room ... this dish is " + << "very hot ..." << std::endl; } boost::xtime xt; boost::xtime_get(&xt, boost::TIME_UTC); @@ -108,8 +108,8 @@ struct phil void run() { { boost::mutex::scoped_lock lock(iomx); - std::cout << "(" << clock() << ") Phil" << m_id << ": starting ..." - << std::endl; + std::cout << "(" << clock() << ") Phil" << m_id + << ": starting ..." << std::endl; } for (;;) { diff --git a/include/boost/thread/detail/singleton.hpp b/include/boost/thread/detail/singleton.hpp index 6adf2d0b..f4b589b4 100644 --- a/include/boost/thread/detail/singleton.hpp +++ b/include/boost/thread/detail/singleton.hpp @@ -33,19 +33,19 @@ public: }; -template +template inline singleton::singleton() { /* no-op */ } -template +template inline singleton::~singleton() { /* no-op */ } -template +template /*static*/ T &singleton::instance() { // function-local static to force this to work correctly at static