Skip to content

Commit e4e0ede

Browse files
Dawn Perchikzygoloid
authored andcommitted
LWG3000 monotonic_memory_resource::do_is_equal uses dynamic_cast unnecessarily
1 parent 0575cd6 commit e4e0ede

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

source/utilities.tex

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12101,27 +12101,15 @@
1210112101
\end{itemdescr}
1210212102

1210312103
\indexlibrarymember{do_is_equal}{synchronized_pool_resource}%
12104-
\begin{itemdecl}
12105-
bool synchronized_pool_resource::do_is_equal(
12106-
const memory_resource& other) const noexcept override;
12107-
\end{itemdecl}
12108-
12109-
\begin{itemdescr}
12110-
\pnum
12111-
\returns
12112-
\tcode{this == dynamic_cast<const synchronized_pool_resource*>(\&other)}.
12113-
\end{itemdescr}
12114-
1211512104
\indexlibrarymember{do_is_equal}{unsynchronized_pool_resource}%
1211612105
\begin{itemdecl}
12117-
bool unsynchronized_pool_resource::do_is_equal(
12118-
const memory_resource& other) const noexcept override;
12106+
bool do_is_equal(const memory_resource& other) const noexcept override;
1211912107
\end{itemdecl}
1212012108

1212112109
\begin{itemdescr}
1212212110
\pnum
1212312111
\returns
12124-
\tcode{this == dynamic_cast<const unsynchronized_pool_resource*>(\&other)}.
12112+
\tcode{this == \&other}.
1212512113
\end{itemdescr}
1212612114

1212712115
\rSec2[mem.res.monotonic.buffer]{Class \tcode{monotonic_buffer_resource}}
@@ -12337,7 +12325,7 @@
1233712325
\begin{itemdescr}
1233812326
\pnum
1233912327
\returns
12340-
\tcode{this == dynamic_cast<const monotonic_buffer_resource*>(\&other)}.
12328+
\tcode{this == \&other}.
1234112329
\end{itemdescr}
1234212330

1234312331

0 commit comments

Comments
 (0)