Skip to content

Commit ff9a0d2

Browse files
committed
[atomics.types.operations] Remove uses of deprecated ATOMIC_VAR_INIT
from examples.
1 parent 882834e commit ff9a0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/atomics.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@
19521952
// Padding here.
19531953
unsigned biff = 0xC0DEFEFE;
19541954
};
1955-
atomic<padded> pad = ATOMIC_VAR_INIT({});
1955+
atomic<padded> pad = {};
19561956

19571957
bool zap() {
19581958
padded expected, desired{0, 0};
@@ -1971,7 +1971,7 @@
19711971
double celestia = 0.;
19721972
short luna; // padded
19731973
};
1974-
atomic<pony> princesses = ATOMIC_VAR_INIT({});
1974+
atomic<pony> princesses = {};
19751975

19761976
bool party(pony desired) {
19771977
pony expected;

0 commit comments

Comments
 (0)