Changes between Initial Version and Version 1 of Ticket #6342


Ignore:
Timestamp:
Apr 3, 2012, 6:05:43 AM (11 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6342 – Description

    initial v1  
    11The current implementation is doesn't complies completely with c++11 standard 30.4.4    Call once.
     2
     3
     4{{{
     5struct once_flag {
     6  constexpr once_flag() noexcept;
     7  once_flag(const once_flag&) = delete;
     8  once_flag& operator=(const once_flag&) = delete;
     9};
     10}}}
     11
     12E.g.
     13
     14{{{
     15boost::once_flag once;
     16}}}
     17
     18fails
     19
     20and needs
     21
     22boost::once_flag once=BOOST_ONCE_INIT;
     23
     24In addition one_flag in not copyable.
     25