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
8 changes: 4 additions & 4 deletions source/expressions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4517,12 +4517,12 @@
\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
Let \tcode{C} be the class type to which \tcode{T} points or refers. The dynamic
check logically executes as follows:

\begin{itemize}
Expand All @@ -4539,7 +4539,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 @@ -4563,7 +4563,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