HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by hasenj | Hacker News Reader
Parent
Full thread
hasenj
·
Don't C++ classes (and therefore structs) have a hidden vtable?
View on HN
plq
·
vtable is always "hidden". It's only there when there is at least one virtual member defined. Sole difference between class and struct in C++ is default visibility.
class A { int a; // private } struct A { int a; // public }
taejo
·
Only if they have virtual members.
Reply on news.ycombinator.com