C++ question: MI vs. pure virtuals

Chip Salzenberg chip@valinux.com
Fri Dec 31 18:08:00 GMT 1999


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


More information about the Gcc-bugs mailing list