Skip to content

Commit 28430c7

Browse files
burblebeetkoeppe
authored andcommitted
LWG3427 operator<=>(const shared_ptr<T>&, nullptr_t) definition ill-formed
1 parent 56b73a9 commit 28430c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/utilities.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10803,7 +10803,9 @@
1080310803
\begin{itemdescr}
1080410804
\pnum
1080510805
\returns
10806-
\tcode{compare_three_way()(a.get(), nullptr)}.
10806+
\begin{codeblock}
10807+
compare_three_way()(a.get(), static_cast<typename shared_ptr<T>::element_type*>(nullptr).
10808+
\end{codeblock}
1080710809
\end{itemdescr}
1080810810

1080910811
\rSec3[util.smartptr.shared.spec]{Specialized algorithms}

0 commit comments

Comments
 (0)