[Boost-bugs] [Boost C++ Libraries] #12036: boost::physical_concurrency always returns 0 if BOOST_USE_WINAPI_VERSION is not defined

Subject: [Boost-bugs] [Boost C++ Libraries] #12036: boost::physical_concurrency always returns 0 if BOOST_USE_WINAPI_VERSION is not defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-01 16:55:07


#12036: boost::physical_concurrency always returns 0 if BOOST_USE_WINAPI_VERSION is
not defined
----------------------------------------------+----------------------
 Reporter: Diego Barrios Romero <eldruin@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
----------------------------------------------+----------------------
 On Windows 7:
 Per default BOOST_USE_WINAPI_VERSION is not defined.
 Nevertheless, its value is compared to BOOST_WINAPI_VERSION_WINXP (see
 [https://github.com/boostorg/thread/blob/develop/src/win32/thread.cpp#L533
 link]).
 As a consequence, boost:physical_concurrency() always returns 0 and the
 test test_physical_concurrency_is_non_zero fails.

 It appears to me that BOOST_USE_WINAPI_VERSION should be already be
 defined
 [https://github.com/boostorg/thread/blob/develop/src/win32/thread.cpp#L533
 here] as it is used already in many other headers but somehow, it appears
 not to be.
 The proof is that applying the patch attached, the test passes.
 Maybe this is indicating some header inclusion issue.

 (This issue is present in the current "develop" branch, as well as in the
 1.60 release)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12036>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC