Skip to content

Commit 765a692

Browse files
burblebeetkoeppe
authored andcommitted
LWG3897 inout_ptr will not update raw pointer to 0
1 parent bc86100 commit 765a692

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/memory.tex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5451,10 +5451,8 @@
54515451
% pretend to \item that there is real text here, but undo the vertical spacing
54525452
\mbox{}\vspace{-\baselineskip}\vspace{-\parskip}
54535453
\begin{codeblock}
5454-
if (p) {
5455-
apply([&](auto&&... args) {
5456-
s = Smart( static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
5457-
}
5454+
apply([&](auto&&... args) {
5455+
s = Smart(static_cast<SP>(p), std::forward<Args>(args)...); }, std::move(a));
54585456
\end{codeblock}
54595457
if \tcode{is_pointer_v<Smart>} is \tcode{true};
54605458
\item

0 commit comments

Comments
 (0)