Signatures (C++ extension)
IvO
imunoz@eso.org
Sun Jun 20 07:10:00 GMT 1999
Hi,
I am using the signature extension of egcs (compile with
-fhandle-signatures).
It works, but i does not honor virtual functions, i.e.
If I instantiate a pointer to the signature class via a pointer to one
of my base classes (but the pointer is really pointing to a derived
object) when calling any of the signature functions what is actually
calles is the base class function, not the derived one (yes, I declared
the function as virtual in the base and derved).
The only way to get the derived function to be called trough the
signature is by assigning to the signature class a pointer to the
derived class, which is awful and makes signatures useless for my
purposes.
Does anybody know if this the way it should be? am I missing something?
I am using:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
thanx in advance.
Saludos,
IvO
More information about the Gcc
mailing list