Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does C++ ABI specify how vTable and RTTI information should exist?

Popular implementation like GCC/VC uses the first size_t space of an polymorphic object as a pointer, pointing to a vtable structure. Is this part of latest C++ ABI?

How about RTTI implementation, does C++ ABI specify how to implement? Thanks

like image 596
Hind Forsum Avatar asked Feb 05 '23 20:02

Hind Forsum


1 Answers

No, the C++ standard does not specify how any of this should be implemented. There is no single C++ ABI.

like image 132
Christian Hackl Avatar answered Feb 08 '23 17:02

Christian Hackl