Opened 10 years ago

Closed 10 years ago

#8371 closed Bugs (fixed)

C++11 once_flag enabled when constexpr is not available

Reported by: Andrey Semashev Owned by: viboes
Milestone: Boost 1.54.0 Component: thread
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

Boost.Thread should disable C++11 interface for call_once (and once_flag in particular) when the compiler does not support constexpr. Otherwise once_flag construction is not thread safe. This has been brought up in this topic.

Attachments (1)

thread_config.patch (817 bytes ) - added by Andrey Semashev 10 years ago.
The patch disables C++11 call_once when constexpr is not supported.

Download all attachments as: .zip

Change History (5)

by Andrey Semashev, 10 years ago

Attachment: thread_config.patch added

The patch disables C++11 call_once when constexpr is not supported.

comment:1 by Andrey Semashev, 10 years ago

Owner: changed from Anthony Williams to viboes

comment:2 by viboes, 10 years ago

Milestone: To Be DeterminedBoost 1.54.0
Status: newassigned

Thanks for the report. This has already been fixed on trunk and merged to release.

comment:3 by Andrey Semashev, 10 years ago

Oh, thanks. I missed the commit somehow.

comment:4 by viboes, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.