Re: [Dev-C++] returning a constant string reference
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elizabeth B. <sog...@ya...> - 2002-10-17 13:40:44
|
"Daniel Glenfield" <sp...@ho...> writes: > This is the code currently > String GetName() const; > > To make the function return a const string reference, do I changeit to > > String& GetName() const; > > or is it now returning a String object? Possibly const String& GetName() const; Elizabeth |