Difference between revisions of "Intermediate C++ Game Programming Tutorial 19"
From Chilipedia
(Created page with "In this video Chili teaches us how to figure out what our polymorphic pointers are actually ''pointing'' to. == Topics Covered == * <code>dynamic_cast<T*></code> and <code>dy...") |
|||
Line 1: | Line 1: | ||
− | In this video Chili teaches us how to figure out what our polymorphic pointers are actually ''pointing'' to. | + | In this video Chili teaches us how to figure out what our polymorphic pointers are actually ''pointing'' to. Just note that although we can do this, it is generally a weaksauce way to go about things. Virtual functions are 1000% more hype than type discovery bullshit. |
== Topics Covered == | == Topics Covered == |
Revision as of 21:47, 16 December 2017
In this video Chili teaches us how to figure out what our polymorphic pointers are actually pointing to. Just note that although we can do this, it is generally a weaksauce way to go about things. Virtual functions are 1000% more hype than type discovery bullshit.
Topics Covered
-
dynamic_cast<T*>
anddynamic_cast<T&>
-
const_cast
- Overview of all C++ style casts
- RTTI with
typeid()
Video Timestamp Index
Source Code
Note that the code for this video is in a different branch called "casting". You will not find it in the master branch.