diff --git a/include/boost/thread/scoped_thread.hpp b/include/boost/thread/scoped_thread.hpp index d7fbabd8..6fa6dd69 100644 --- a/include/boost/thread/scoped_thread.hpp +++ b/include/boost/thread/scoped_thread.hpp @@ -266,10 +266,12 @@ namespace boost return thread::hardware_concurrency(); } +#ifdef BOOST_THREAD_PROVIDES_PHYSICAL_CONCURRENCY static unsigned physical_concurrency() BOOST_NOEXCEPT { return thread::physical_concurrency(); } +#endif }; /**