Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4663,13 +4663,13 @@
\pnum
If \tcode{T} is ``pointer to \cv{} \keyword{void}'', then the result
is a pointer to the most derived object pointed to by \tcode{v}.
Otherwise, a runtime check is applied to see if the object pointed or
Otherwise, a dynamic check is applied to see if the object pointed or
referred to by \tcode{v} can be converted to the type pointed or
referred to by \tcode{T}.

\pnum
Let \tcode{C} be the class type to which \tcode{T} points or refers. The runtime
check logically executes as follows:
Let \tcode{C} be the class type to which \tcode{T} points or refers.
The dynamic check logically executes as follows:

\begin{itemize}
\item If, in the most derived object pointed (referred) to by \tcode{v},
Expand All @@ -4685,7 +4685,7 @@
\tcode{C} subobject of the most derived object.

\item Otherwise, the
runtime check \term{fails}.
dynamic check \term{fails}.
\end{itemize}

\pnum
Expand All @@ -4709,7 +4709,7 @@
ap = dynamic_cast<A*>(bp); // fails
bp = dynamic_cast<B*>(ap); // fails
ap = dynamic_cast<A*>(&d); // succeeds
bp = dynamic_cast<B*>(&d); // ill-formed (not a runtime check)
bp = dynamic_cast<B*>(&d); // ill-formed (not a dynamic check)
}

class E : public D, public B { };
Expand Down
Loading