Modify

Ticket #7052 (closed Bugs: fixed)

Opened 22 months ago

Last modified 22 months ago

Thread: BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 only masks thread::operator==, thread::operator!= forward declarations, not definitions

Reported by: pekka.seppanen@… Owned by: viboes
Milestone: Boost 1.51.0 Component: thread
Version: Boost 1.50.0 Severity: Problem
Keywords: thread BOOST_THREAD_PROVIDES_DEPRECATED_FEATURES_SINCE_V3_0_0 thread::operator== thread::operator!= Cc:

Description

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.

Attachments

boost_1_50_0_thread_no_depr_feat_v3.patch Download (480 bytes) - added by pekka.seppanen@… 22 months ago.
Do not define thread::operator== and thread::operator!= unless deprecated features are explicitly requested.

Change History

Changed 22 months ago by pekka.seppanen@…

Do not define thread::operator== and thread::operator!= unless deprecated features are explicitly requested.

comment:1 Changed 22 months ago by viboes

  • Owner changed from anthonyw to viboes
  • Status changed from new to assigned
  • Milestone changed from To Be Determined to Boost 1.51.0

Thanks for the report and the patch. I don't know why the regression tests don't catch the error.

Just for curiosity, what compiler are you using? Could you attach the example and the command line that show the error?

Committed in trunk revision 79237.

comment:2 Changed 22 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

Committed revision 79373.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.