|
From: Peter B. <pb...@hg...> - 2004-09-30 13:09:12
|
> int main()
> {
> Second Obj2;
> Obj2.myfun(First());
> return 0;
> }
Without seeing the error-messages I think the problem is the temporarily
instantiated object of class First in Obj2.myfun(First()).
myfun() takes a reference to a First object, which in the above sample
is a temporary instance.
Peter
|