This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ question: MI vs. pure virtuals


I've studied the Standard but I can't seem to find an answer to this
question: Are inherited *non-virtual* functions supposed to provide
implementations for pure virtuals?

For example, given this:

	class A { virtual void f() = 0; };  // PURE VIRTUAL
	class B { void f() {} };            // NON-VIRTUAL
        class C {};                         // ??

Is class C abstract like A, or not?
-- 
Chip Salzenberg             - a.k.a. -              <chip@valinux.com>
     "Fleagal.  Bingo.  Drooper.  Snork.  They're cops."   //MST3K


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]