Boost C++ Libraries: Ticket #7052: Thread: BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 only masks thread::operator==, thread::operator!= forward declarations, not definitions https://svn.boost.org/trac10/ticket/7052 <p> If <code>BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0</code> is not defined, it only masks <code>thread::operator==</code> and <code>thread::operator!=</code> declarations at <code>boost/thread/detail/thread.hpp:411-416</code> but not the actual definitions at lines 585-593. </p> <p> This naturally leads to a compile error, as we're trying to define operators are not declared. </p> <p> Attached a proposed patch. Simply adds the same define guard around the definitions. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7052 Trac 1.4.3 pekka.seppanen@… Fri, 29 Jun 2012 10:42:03 GMT attachment set https://svn.boost.org/trac10/ticket/7052 https://svn.boost.org/trac10/ticket/7052 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_1_50_0_thread_no_depr_feat_v3.patch</span> </li> </ul> <p> Do not define thread::operator== and thread::operator!= unless deprecated features are explicitly requested. </p> Ticket viboes Mon, 02 Jul 2012 21:59:42 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/7052#comment:1 https://svn.boost.org/trac10/ticket/7052#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.51.0</span> </li> </ul> <p> Thanks for the report and the patch. I don't know why the regression tests don't catch the error. </p> <p> Just for curiosity, what compiler are you using? Could you attach the example and the command line that show the error? </p> <p> Committed in trunk revision 79237. </p> Ticket viboes Mon, 09 Jul 2012 21:09:58 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7052#comment:2 https://svn.boost.org/trac10/ticket/7052#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Committed revision 79373. </p> Ticket