Skip to content

Commit 9076e26

Browse files
committed
[new.delete.single], [smartptr.util.getdeleter] Replace literal 0 with nullptr.
Fixes #243 and #244
1 parent ae896e9 commit 9076e26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@
16541654
\enterexample
16551655
\begin{codeblock}
16561656
T* p1 = new T; // throws \tcode{bad_alloc} if it fails
1657-
T* p2 = new(nothrow) T; // returns \tcode{0} if it fails
1657+
T* p2 = new(nothrow) T; // returns \tcode{nullptr} if it fails
16581658
\end{codeblock}
16591659
\exitexample
16601660
\end{itemdescr}

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6273,7 +6273,7 @@
62736273

62746274
\begin{itemdescr}
62756275
\pnum\returns If \tcode{p} \textit{owns} a deleter \tcode{d} of type cv-unqualified
6276-
\tcode{D}, returns \tcode{\&d}; otherwise returns \tcode{0}. The returned
6276+
\tcode{D}, returns \tcode{\&d}; otherwise returns \tcode{nullptr}. The returned
62776277
pointer remains valid as long as there exists a \tcode{shared_ptr} instance
62786278
that owns \tcode{d}. \enternote It is unspecified whether the pointer
62796279
remains valid longer than that. This can happen if the implementation doesn't destroy

0 commit comments

Comments
 (0)