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)
Change History (5)
by , 10 years ago
| Attachment: | thread_config.patch added | 
|---|
comment:1 by , 10 years ago
| Owner: | changed from to | 
|---|
comment:2 by , 10 years ago
| Milestone: | To Be Determined → Boost 1.54.0 | 
|---|---|
| Status: | new → assigned | 
Thanks for the report. This has already been fixed on trunk and merged to release.
  Note:
 See   TracTickets
 for help on using tickets.
    

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