Skip to content

Commit 63bf48b

Browse files
committed
LWG4024 Underspecified destruction of objects created in std::make_shared_for_overwrite/std::allocate_shared_for_overwrite
1 parent 562a3be commit 63bf48b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/memory.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4012,7 +4012,9 @@
40124012
of their original construction.
40134013
\item
40144014
When a (sub)object of non-array type \tcode{U}
4015-
that was initialized by \tcode{make_shared} is to be destroyed,
4015+
that was initialized by \tcode{make_shared},
4016+
\tcode{make_shared_for_overwrite}, or \tcode{allocate_shared_for_overwrite}
4017+
is to be destroyed,
40164018
it is destroyed via the expression \tcode{pv->\~{}U()} where
40174019
\tcode{pv} points to that object of type \tcode{U}.
40184020
\item

0 commit comments

Comments
 (0)