Skip to content

Commit 7226952

Browse files
burblebeetkoeppe
authored andcommitted
LWG4148 unique_ptr::operator* should not allow dangling references
1 parent d6a8c67 commit 7226952

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/memory.tex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,9 +2442,13 @@
24422442
\end{itemdecl}
24432443

24442444
\begin{itemdescr}
2445+
\pnum
2446+
\mandates
2447+
\tcode{reference_converts_from_temporary_v<add_lvalue_reference_t<T>, decltype(\linebreak{}*declval<pointer>())>} is \tcode{false}.
2448+
24452449
\pnum
24462450
\expects
2447-
\tcode{get() != nullptr}.
2451+
\tcode{get() != nullptr} is \tcode{true}.
24482452

24492453
\pnum
24502454
\returns

0 commit comments

Comments
 (0)