Standard C++ Foundation

The home of Standard C++ on the web — news, status and discussion about the C++ standard on all compilers and platforms.

  • CppCon 2017 : dynamic_cast From Scratch—Arthur O’Dwyer
    http://isocpp.org/feeder/?FeederAction=clicked&feed=All+Posts&seed=http%3A%2F%2Fisocpp.org%2Fblog%2F2

    Have you registered for CppCon 2018 in September? Early bird registration is open now.

    While we wait for this year’s event, we’re featuring videos of some of the 100+ talks from CppCon 2017 for you to enjoy. Here is today’s feature:

    dynamic_cast From Scratch by Arthur O’Dwyer (watch on YouTube) (watch on Channel 9)

    Summary of the talk:

    This session will introduce you to the C++ object model: the rules by which C++ class objects are translated into memory layouts. We’ll quickly cover polymorphic class types and multiple and virtual inheritance. We’ll discuss the anatomy of a virtual method call, the difference between static_cast and reinterpret_cast, and what’s contained in a vtable besides function pointers. We’ll see that the way dynamic_cast (...)

    #News,Video&_On-Demand,