Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binary132
· 2y ago · 0 comments
Slight detail: there only needs to be one instance of the vtable per class, and objects of that type only need to contain a pointer to it.
Comments
[–]
Dwedit
2y ago
And you can also make the vtable `const` so it goes into the read-only data section.