From 5d946cb047fe2185f5cfaf8662131f7d4eccea96 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 28 Dec 2023 10:07:15 +0800 Subject: [PATCH 1/3] [mem.res.private] Say `*this` instead of improper `this` --- source/memory.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/memory.tex b/source/memory.tex index a24a3b4973..8de07d0bd0 100644 --- a/source/memory.tex +++ b/source/memory.tex @@ -5735,10 +5735,10 @@ \begin{itemdescr} \pnum \returns -A derived class shall implement this function to return \tcode{true} if memory allocated from \keyword{this} can be deallocated from \tcode{other} and vice-versa, +A derived class shall implement this function to return \tcode{true} if memory allocated from \tcode{*this} can be deallocated from \tcode{other} and vice-versa, otherwise \tcode{false}. \begin{note} -It is possible that the most-derived type of \tcode{other} does not match the type of \keyword{this}. +It is possible that the most-derived type of \tcode{other} does not match the type of \tcode{*this}. For a derived class \tcode{D}, an implementation of this function can immediately return \tcode{false} if \tcode{dynamic_cast(\&other) == nullptr}. From 3d2b8203e52fac3d056ff457c2607c5d7992dd84 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 28 Dec 2023 10:08:04 +0800 Subject: [PATCH 2/3] [mem.res.monotonic.buffer.mem] Say `*this` instead of improper `this` --- source/memory.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/memory.tex b/source/memory.tex index 8de07d0bd0..f65e2de029 100644 --- a/source/memory.tex +++ b/source/memory.tex @@ -6607,8 +6607,8 @@ \pnum \begin{note} The memory is released back to \tcode{upstream_rsrc} -even if some blocks that were allocated from \keyword{this} -have not been deallocated from \keyword{this}. +even if some blocks that were allocated from \tcode{*this} +have not been deallocated from \tcode{*this}. \end{note} \end{itemdescr} From 44da6c421b76a8c43210b153aa2a0ef91ef4fe6a Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Thu, 28 Dec 2023 10:09:08 +0800 Subject: [PATCH 3/3] [re.traits] Say `*this` instead of improper `this` --- source/regex.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/regex.tex b/source/regex.tex index f8882f3d83..bbec2e9f78 100644 --- a/source/regex.tex +++ b/source/regex.tex @@ -1260,7 +1260,7 @@ \begin{itemdescr} \pnum \effects -Imbues \keyword{this} with a copy of the +Imbues \tcode{*this} with a copy of the locale \tcode{loc}. \begin{note} Calling \tcode{imbue} with a