diff --git a/example/perf_condition_variable.cpp b/example/perf_condition_variable.cpp index 81816dca0..058386125 100644 --- a/example/perf_condition_variable.cpp +++ b/example/perf_condition_variable.cpp @@ -143,7 +143,7 @@ namespace { typedef SharedData S; - auto best_producer_time = std::numeric_limits::max(); + auto best_producer_time = std::numeric_limits::max BOOST_PREVENT_MACRO_SUBSTITUTION (); std::vector consumers { consumer_count }; @@ -165,7 +165,7 @@ namespace for (unsigned i = 0; i < consumer_count; ++i) consumers[i].join(); - best_producer_time = std::min(best_producer_time, shared_data.producer_time); + best_producer_time = std::min BOOST_PREVENT_MACRO_SUBSTITUTION (best_producer_time, shared_data.producer_time); } diff --git a/example/perf_shared_mutex.cpp b/example/perf_shared_mutex.cpp index 7d8b979f7..b58c0079c 100644 --- a/example/perf_shared_mutex.cpp +++ b/example/perf_shared_mutex.cpp @@ -42,7 +42,7 @@ void unique() int main() { - boost::chrono::high_resolution_clock::duration best_time(std::numeric_limits::max()); + boost::chrono::high_resolution_clock::duration best_time(std::numeric_limits::max BOOST_PREVENT_MACRO_SUBSTITUTION ()); for (int i =100; i>0; --i) { boost::chrono::high_resolution_clock clock; boost::chrono::high_resolution_clock::time_point s1 = clock.now(); @@ -61,7 +61,7 @@ int main() // t13.join(); boost::chrono::high_resolution_clock::time_point f1 = clock.now(); //std::cout << " Time spent:" << (f1 - s1) << std::endl; - best_time = std::min(best_time, f1 - s1); + best_time = std::min BOOST_PREVENT_MACRO_SUBSTITUTION (best_time, f1 - s1); } std::cout << "Best Time spent:" << best_time << std::endl; diff --git a/include/boost/thread/detail/is_convertible.hpp b/include/boost/thread/detail/is_convertible.hpp index 6ed715af9..b77620cf1 100644 --- a/include/boost/thread/detail/is_convertible.hpp +++ b/include/boost/thread/detail/is_convertible.hpp @@ -1,8 +1,9 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright 2011-2012 Vicente J. Botet Escriba -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Copyright (C) 2011-2013 Vicente J. Botet Escriba +// +// 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) // // See http://www.boost.org/libs/thread for documentation. // diff --git a/include/boost/thread/detail/memory.hpp b/include/boost/thread/detail/memory.hpp index 3c1692d0e..8c0bf3fe5 100644 --- a/include/boost/thread/detail/memory.hpp +++ b/include/boost/thread/detail/memory.hpp @@ -1,8 +1,9 @@ ////////////////////////////////////////////////////////////////////////////// // -// (C) Copyright 2011-2012 Vicente J. Botet Escriba -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// Copyright (C) 2011-2013 Vicente J. Botet Escriba +// +// 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) // // See http://www.boost.org/libs/thread for documentation. // diff --git a/include/boost/thread/future.hpp b/include/boost/thread/future.hpp index d86a045a9..f2caaa7d5 100644 --- a/include/boost/thread/future.hpp +++ b/include/boost/thread/future.hpp @@ -1552,7 +1552,7 @@ namespace boost static_cast(this)->swap(other); } - // todo this functioˆn must be private and friendship provided to the internal users. + // todo this function must be private and friendship provided to the internal users. void set_async() { this->future_->set_async(); diff --git a/include/boost/thread/v2/shared_mutex.hpp b/include/boost/thread/v2/shared_mutex.hpp index c81b1e075..e6b85829d 100755 --- a/include/boost/thread/v2/shared_mutex.hpp +++ b/include/boost/thread/v2/shared_mutex.hpp @@ -179,15 +179,15 @@ namespace boost { BOOST_THREAD_INLINE shared_mutex(); BOOST_THREAD_INLINE ~shared_mutex(); -#ifndef BOOST_NO_DELETED_FUNCTIONS +#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS shared_mutex(shared_mutex const&) = delete; shared_mutex& operator=(shared_mutex const&) = delete; -#else // BOOST_NO_DELETED_FUNCTIONS +#else // BOOST_NO_CXX11_DELETED_FUNCTIONS private: shared_mutex(shared_mutex const&); shared_mutex& operator=(shared_mutex const&); public: -#endif // BOOST_NO_DELETED_FUNCTIONS +#endif // BOOST_NO_CXX11_DELETED_FUNCTIONS // Exclusive ownership