We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882834e commit ff9a0d2Copy full SHA for ff9a0d2
source/atomics.tex
@@ -1952,7 +1952,7 @@
1952
// Padding here.
1953
unsigned biff = 0xC0DEFEFE;
1954
};
1955
-atomic<padded> pad = ATOMIC_VAR_INIT({});
+atomic<padded> pad = {};
1956
1957
bool zap() {
1958
padded expected, desired{0, 0};
@@ -1971,7 +1971,7 @@
1971
double celestia = 0.;
1972
short luna; // padded
1973
1974
-atomic<pony> princesses = ATOMIC_VAR_INIT({});
+atomic<pony> princesses = {};
1975
1976
bool party(pony desired) {
1977
pony expected;
0 commit comments