+ Reply to Thread
Results 1 to 2 of 2

Thread: What is the use of novtable keyword?

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    46

    What is the use of novtable keyword?

    What is the use of novtable keyword?

    How is it used and what is the significance of this keyword?

    Can I use it in GCC compiler?

  2. #2
    A class contains a VTABLE if it is having virtual function defined.

    VTABLE points to VPTR.

    If a class which is an ABC ( abstract base class) then you do not need to initialize VPTR as it is not required.

    This can be done in the derived classes.

    This reduces the code size.

    Please note that this is Microsoft specific keyword. You will find this keyword in ATL implementation a lot.

    For more information:
    http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts