List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:June 1 2005 11:35am
Subject:Re: Returning an object of type Result
View as plain text  
Roland Sgorcea wrote:

> Result Select_From_Database ...

In addition to what Chris said, you should consider passing a reference 
to the result object to the function, or some other way to prevent this 
copy.  Result is not a light-weight object...returning it by value is 
very wasteful.
Thread
Returning an object of type ResultRoland Sgorcea30 May
  • Re: Returning an object of type ResultChris Frey31 May
  • Re: Returning an object of type ResultWarren Young1 Jun