码迷,mamicode.com
首页 > 其他好文 > 详细

Virtual method table

时间:2016-11-30 02:31:24      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:rect   pil   dia   mon   redirect   class   com   ase   int   

https://en.wikipedia.org/wiki/Virtual_method_table

The g++ compiler implements the multiple inheritance of the classes B1 and B2 in class D using two virtual method tables, one for each base class. (There are other ways to implement multiple inheritance, but this is the most common.) This leads to the necessity for "pointer fixups", also called thunks, whencasting.

Virtual method table

标签:rect   pil   dia   mon   redirect   class   com   ase   int   

原文地址:http://www.cnblogs.com/autoria/p/6115985.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!