Subject: [Boost-bugs] [Boost C++ Libraries] #7052: Thread: BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 only masks thread::operator==, thread::operator!= forward declarations, not definitions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-29 10:40:53
#7052: Thread: BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 only masks
thread::operator==, thread::operator!= forward declarations, not
definitions
-----------------------------------------------------------------------------------------------------------------+
Reporter: pekka.seppanen@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.50.0 | Severity: Problem
Keywords: thread BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 thread::operator== thread::operator!= |
-----------------------------------------------------------------------------------------------------------------+
If `BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0` is not
defined, it only masks `thread::operator==` and `thread::operator!=`
declarations at `boost/thread/detail/thread.hpp:411-416` but not the
actual definitions at lines 585-593.
This naturally leads to a compile error, as we're trying to define
operators are not declared.
Attached a proposed patch. Simply adds the same define guard around the
definitions.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7052> 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:09 UTC