Skip to content

Commit 915e0b1

Browse files
Dawn Perchikzygoloid
authored andcommitted
CWG1744 Unordered initialization for variable template specializations
1 parent 80be622 commit 915e0b1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎source/basic.tex‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,11 +2562,11 @@
25622562
Together, zero-initialization and constant initialization are called \defn{static
25632563
initialization}; all other initialization is \defn{dynamic initialization}. Static
25642564
initialization shall be performed before any dynamic initialization takes place. Dynamic
2565-
initialization of a non-local variable with static storage duration is either ordered or
2566-
unordered. Definitions of explicitly specialized class template static data members have
2567-
ordered initialization. Other class template static data members (i.e., implicitly or
2568-
explicitly instantiated specializations) have unordered initialization. Other non-local
2569-
variables with static storage duration have ordered initialization. Variables with ordered
2565+
initialization of a non-local variable with static storage duration is
2566+
\defn{unordered} if the variable is an implicitly or explicitly instantiated
2567+
specialization, and otherwise is \defn{ordered} \enternote an explicitly
2568+
specialized static data member or variable template specialization has
2569+
ordered initialization. \exitnote Variables with ordered
25702570
initialization defined within a single translation unit shall be initialized in the order of
25712571
their definitions in the translation unit. If a program starts a thread~(\ref{thread.threads}),
25722572
the subsequent initialization of a variable is unsequenced with respect to the initialization

0 commit comments

Comments
 (0)