Re: [Boost-bugs] [Boost C++ Libraries] #6342: c++11 compliance: Adapt the one_flag and call_once to the c++11 interface

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6342: c++11 compliance: Adapt the one_flag and call_once to the c++11 interface
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-03 06:05:43


#6342: c++11 compliance: Adapt the one_flag and call_once to the c++11 interface
-------------------------------+--------------------------------------------
  Reporter: viboes | Owner: viboes
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Description changed by viboes:

Old description:

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

New description:

 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.

--
-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6342#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC