From: Warren Young Date: June 1 2005 11:35am Subject: Re: Returning an object of type Result List-Archive: http://lists.mysql.com/plusplus/4481 Message-Id: <429D9D87.8020406@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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.