P
Preets
Is the v-table, that gets generated by the compilation of a class
having virtual functions, global ? Why and how ?
having virtual functions, global ? Why and how ?
Preets said:Is the v-table, that gets generated by the compilation of a class
having virtual functions, global ? Why and how ?
A v-table is a behind-the-scenes implementation detail. You arePreets said:Is the v-table, that gets generated by the compilation of a class
having virtual functions, global ? Why and how ?
Preets said:Is the v-table, that gets generated by the compilation of a class
having virtual functions, global ? Why and how ?
Preets said:I found the mention about global v-table at this link....
-->> http://www.parashift.com/c++-faq-lite/virtual-functions.html
under the section
-->> [20.3] What's the difference between how virtual and non-virtual
member functions are called?
To quote:
-->> if the object has one or more virtual functions, the compiler puts
a hidden pointer in the object called a "virtual-pointer" or
"v-pointer." This v-pointer points to a global table called the
"virtual-table" or "v-table."
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.