It's great to see Dan writing about C++ again. Here's his latest today, in Dr. Dobb's:
Storage Layout of Polymorphic Objects
By Dan Saks
Adding at least one virtual function to a class alters the storage layout for all objects of that class type.
Adding at least one virtual function to a class alters the storage layout for all objects of that class type. In this article, I begin to explain how C++ compilers typically implement virtual functions by explaining how the use of virtual functions affects the storage layout for objects.
Add a Comment
Comments are closed.