Passing class objects through ... with egcs (g++)
Douglas E. Sprague
dsprague@btv.ibm.com
Wed Mar 31 11:23:00 GMT 1999
Hi,
I'm porting an application from AIX/xlC to Linux/g++.
I'm using egcs-1.0.2 and am having problems compiling some functions
which allow class objects to be passed as variable # of arguments (...).
I get the following compile warning:
warning: cannot pass objects of type `XXX' through `...'
where XXX is my class type.
Is this something that is allowed in a newer version of egcs or is there
some command line option I can specify to allow this to work?
I realize I can use function overloading to get around this but in my
case where different objects types may be passed, it would get real ugly.
I notice it is just a warning. Does the compiler still correctly place
the entire object on the stack?
Any help greatly appreciated!
Thanks,
Doug Sprague
More information about the Gcc
mailing list