RE: object-model: Return by value, reference or pointer? (or something else?)
From: Mark Reibert <svn_at_reibert.com>
Date: Thu, 14 Oct 2010 22:13:32 -0700
> -------- Original Message --------
[snip]
> Personally, I would stick to just returning a string, or if it is
I like that - and the out parameter is actually the place to use a
std::string getAuthor( bool* isNull = 0 ) const { /* ... */ }
Callers who care about null-ness can check for it with little more
|
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.