C v-table:语言或编译器的一部分依赖?
作者:互联网
v-table(virtual method table)是C规范的一部分,还是由编译器来解决虚方法查找?
如果它是规范的一部分:为什么?
我猜它是依赖于编译器的,但有人告诉我这是规范的一部分.
非常欢迎参考!
解决方法:
1.7 The C++ memory model
3 […] Various features of the language, such
as references and virtual functions,
might involve additional memory
locations that are not accessible to
programs but are managed by the
implementation. […]
你有它.这取决于实施.
标签:vtable,c 来源: https://codeday.me/bug/20190929/1830724.html