Skip to content

Commit 39f748e

Browse files
jensmaurertkoeppe
authored andcommitted
[atomics] Fix standard-layout requirement for atomic types (#1021)
Fixes #506.
1 parent b7de198 commit 39f748e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/atomics.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,13 +605,14 @@
605605

606606
\pnum
607607
The atomic integral specializations and the specialization \tcode{atomic<bool>}
608-
shall have standard layout. They shall each have a trivial default constructor
608+
shall be standard-layout structs. They shall each have a trivial default constructor
609609
and a trivial destructor. They shall each support aggregate initialization
610610
syntax.
611611

612612
\pnum
613613
There shall be pointer partial specializations of the \tcode{atomic} class template.
614-
These specializations shall have standard layout, trivial default constructors, and trivial destructors.
614+
These specializations shall be standard-layout structs.
615+
They shall each have a trivial default constructor and a trivial destructor.
615616
They shall each support aggregate initialization syntax.
616617

617618
\pnum
@@ -1259,7 +1260,8 @@
12591260
\tcode{atomic_flag}, though with less than ideal properties. \end{note}
12601261

12611262
\pnum
1262-
The \tcode{atomic_flag} type shall have standard layout. It shall have a trivial default constructor, a deleted copy constructor, a deleted copy assignment operator, and a trivial destructor.
1263+
The \tcode{atomic_flag} type shall be a standard-layout struct.
1264+
It shall have a trivial default constructor, a deleted copy constructor, a deleted copy assignment operator, and a trivial destructor.
12631265

12641266
\pnum
12651267
The macro \tcode{ATOMIC_FLAG_INIT} shall be defined in such a way that it can be used to initialize an object of type \tcode{atomic_flag} to the

0 commit comments

Comments
 (0)