valid code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So, was wondering, what do people think of:

class A {
  virtual int B() { return 0; }
};

class B: A {
  B() { }
};

valid code? I didn't find any prohibitions against it (yet) in the 98 language standard. I'm kinda wishing there is and was hoping someone where could just cite it. :-) If not, I'll file a bug report for it.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux