vtable
Allocating an array of Derived without new[]: Pointer to Base vtable is bad
Basically, I have a pure virtual class Base, and a concrete class Derived which inherits from Base. I then allocate a piece of memory and treat it as an array of Derived via a simple cast. Then, I pop[详细]
2022-12-16 05:31 分类:问答Loading an EXE as a DLL, local vftable
I have an exe named test.exe which is usually used as a stand-alone application. I want to use this exe as a module (a dll) inside another application, app.exe.[详细]
2022-12-13 22:57 分类:问答Virtual tables are undefined
I wrote some code but I am unable to compile it: #include <cstdio> #include <vector> using namespace std;[详细]
2022-12-11 21:28 分类:问答C++ Separate Compilers for classes (vtables)?
I was wondering what the consequences are for compiling a class A with one compiler that doesn\'t allow multiple inheritance, and compiling a class B that does support it (and class B derived from cla[详细]
2022-12-11 03:02 分类:问答Size of virtual pointer-C++
What is the size of virtual pointer(VPTR) for a virtual table in C++? Also this is not a homework question...just a question that cam开发者_JS百科e to my mind while I was reading a C++ book.An excelle[详细]
2022-12-09 06:31 分类:问答