Re: [Dev-C++] classes and references
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Goran K. <go...@re...> - 2003-05-04 00:29:38
|
V ned, 04.05.2003 ob 01:46, je OROSZI Bal=E1zs poslal(a): > Goran Kavrecic wrote: > > try defining your return type as a reference with a simple and(&) aft= er the class name. > tried it, and it gives a warning: "reference returned to local variable= "=20 I think I've got with BC something like "...return valuse used as temporary value" or at least it sounds alike. > I am pondering, it has something to do with const stuff. >=20 > (... 5 mins trial ...) >=20 > BINGO!!! >=20 > YIPEE!!! I have also found the explanation in the book!!! :))) > The book sais (rough translation): At the end the book isn't so stupid, a? > And again, thanks for you swift response. Welcome. Obvously we are stronger when united. Good night, Goran |