mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
692a4f49e6
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@258 f6dd340e-d3f9-0310-b409-bdd246841980
8 lines
545 B
Text
8 lines
545 B
Text
Finally there is a new style cast that is used in combination with
|
|
polymorphism (see chapter ref(POLYMORPHISM)). Its syntax is:
|
|
centt(dynamic_cast<type>(expression))
|
|
It is used run-time to convert, a pointer to an object of a class to a
|
|
pointer to an object of a class that is found further down its so-called
|
|
em(class hierarchy) (which is also called a em(downcast)). At this point in
|
|
the em(Annotations) a tt(dynamic_cast) cannot yet be discussed extensively,
|
|
but we will return to this topic in section ref(DYNAMICCAST).
|