Modify

Ticket #6342 (closed Feature Requests: fixed)

Opened 2 years ago

Last modified 2 years ago

c++11 compliance: Adapt the one_flag to the c++11 interface

Reported by: viboes Owned by: viboes
Milestone: Boost 1.50.0 Component: thread
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes) (diff)

The current implementation is doesn't complies completely with c++11 standard 30.4.4 Call once.

struct once_flag { 
  constexpr once_flag() noexcept;
  once_flag(const once_flag&) = delete; 
  once_flag& operator=(const once_flag&) = delete;
};

E.g.

boost::once_flag once;

fails

and needs

boost::once_flag once=BOOST_ONCE_INIT;

In addition one_flag in not copyable.

Attachments

6342.patch Download (10.2 KB) - added by viboes 2 years ago.
committed diffs in trunk [77767]

Change History

comment:1 Changed 2 years ago by viboes

  • Description modified (diff)

Changed 2 years ago by viboes

committed diffs in trunk [77767]

comment:2 Changed 2 years ago by viboes

  • Milestone changed from To Be Determined to Boost 1.50.0

comment:3 Changed 2 years ago by viboes

  • Status changed from new to assigned

comment:4 Changed 2 years ago by viboes

  • Summary changed from c++11 compliance: Adapt the one_flag and call_once to the c++11 interface to c++11 compliance: Adapt the one_flag to the c++11 interface

comment:5 Changed 2 years ago by viboes

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

Committed in release branch at [78543]

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.