1

探索C++虚函数在g++中的实现

 3 years ago
source link: http://blog.kongfy.com/2015/08/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

八月 2015

八月 2015 发表了 1 篇文章

探索C++虚函数在g++中的实现

本文是我在追查一个诡异core问题的过程中收获的一点心得,把公司项目相关的背景和特定条件去掉后,仅取其中通用的C++虚函数实现部分知识记录于此。

在开始之前,原谅我先借用一张图黑一下C++:

“无敌”的C++

“无敌”的C++

如果你也在写C++,请一定小心…至少,你要先有所了解:当你在写虚函数的时候,g++在写什么?

继续阅读:→

分类: C/C++ | 2015-08-04 | 684 个字 | 4 Comments


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK