Topic: Another Watcom C++ 10.0 error in error


Author: robert@idt.unit.no (Robert Schmidt)
Date: 29 Jul 1994 12:28:06 GMT
Raw View
Upon porting some of my old class libraries from BC++ 3.1 to WC++ 10.0,
I encountered the following error:

canvas.hpp(167): Error! E505: (col 58) virtual member functions cannot have "..." style parameter lists

The offender was of course similar to this:

class Canvas
{
  public:
    virtual int printf(char *format, ...);  // fails!
};

Whatever can let Watcom make this an error?  It's easy to work around this
restriction, and yes, I know "..." is not very OO, but hey...

--
Robert Schmidt - robert@stud.unit.no

        If all you have is a hammer, everything looks like a nail.