Re: object-model: Return by value, reference or pointer? (or something else?)
From: Steinar Bang <sb_at_dod.no>
Date: Wed, 13 Oct 2010 22:16:08 +0200
>>>>> "Hyrum K. Wright" <hyrum_wright_at_mail.utexas.edu>:
> At this point, it's my turn to get confused. I'm speaking
Ah, ok. That was at a different part of the thread... which I avoided
Do you need the distrinction between an empty string and a NULL?
If not then I would return an empty string for a NULL on the C side.
There's also the consideration that some std::string implementations are
Then maybe what you want to return is const std::string& (which leaves
|
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.