Re: object-model: Return by value, reference or pointer? (or something else?)
From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Tue, 12 Oct 2010 15:30:51 -0500
On Tue, Oct 12, 2010 at 2:40 PM, Branko Čibej <brane_at_xbc.nu> wrote:
That works great for our own types, but what about stuff like std::string?
inline std::string getAuthor() const { return std::string(ptr->author); }
doesn't go over so well when ptr->author is NULL. If returning by
-Hyrum
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.