I have a simple RAII class to ensure some handle is properly disposed of. Now I would like to assert that no one is going to add by accident any virtual methods to it. The way I see it, I need to assert that the class does not have the vtbl pointer.
How can I do it? Is it possible to assert at the compile time?
EDIT
I will settle for desktop compilers. As far as I know there are no desktop c++ compilers that are not using vtbl for implementing polymorphism.