Hello all!
I have an interface class called IPlugin which declares a couple of pure virtual function and inherits from QObject.
I’ve put this IPlugin header file in /usr/include/c++/4.7.2/ for easier inclusion in my projects.
Now, when I create a new C++ Library project and make my class inherit from IPlugin, I can just compile it right away
without implementing any of the pure virtual functions. In my world that shouldn’t be possible, and it would also be very
convenient if it wasn’t possible, since I won’t have to backtrack later on when I realize I have missed to implement a method or two.
Why does the library compile? Can I make it output an error when there are unimplemented methods?
Thanks in advance!
↧