Skip to content

Commit 8d517c6

Browse files
committed
Fixup LWG4172 unique_lock self-move-assignment is broken
Use parens instead of braced-init, as suggested on LWG reflector.
1 parent f843453 commit 8d517c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/threads.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -7874,7 +7874,7 @@
78747874
\begin{itemdescr}
78757875
\pnum
78767876
\effects
7877-
Equivalent to: \tcode{unique_lock\{std::move(u)\}.swap(*this)}
7877+
Equivalent to: \tcode{unique_lock(std::move(u)).swap(*this)}
78787878

78797879
\pnum
78807880
\returns
@@ -8365,7 +8365,7 @@
83658365
\begin{itemdescr}
83668366
\pnum
83678367
\effects
8368-
Equivalent to: \tcode{shared_lock\{std::move(sl)\}.swap(*this)}
8368+
Equivalent to: \tcode{shared_lock(std::move(sl)).swap(*this)}
83698369

83708370
\pnum
83718371
\returns

0 commit comments

Comments
 (0)