C
cppaddict
Hi,
My compiler is erroring on the following line of a RectangleUser
class:
virtual Rectangle& const getNameDisplayRect(int) const=0;
The error is:
'virtual' can only be used with non-template member functions
The Rectangle class contains no templates and neither does
RectangleUser. I have already double-checked that Rectangle.h is
included in the file RectangleUser.h.
Does anyone know what might be causing this?
Thanks,
cpp
My compiler is erroring on the following line of a RectangleUser
class:
virtual Rectangle& const getNameDisplayRect(int) const=0;
The error is:
'virtual' can only be used with non-template member functions
The Rectangle class contains no templates and neither does
RectangleUser. I have already double-checked that Rectangle.h is
included in the file RectangleUser.h.
Does anyone know what might be causing this?
Thanks,
cpp