Re: object-model: Return by value, reference or pointer? (or something else?)
From: Steinar Bang <sb_at_dod.no>
Date: Wed, 13 Oct 2010 21:42:00 +0200
>>>>> "Hyrum K. Wright" <hyrum_wright_at_mail.utexas.edu>:
> Refcounting smartpointers are used to avoid duplication of the
Here I'm not following you. You would hide the complexity of smart
Hm... the first I wouldn't worry about, and on the second I would go to
At least if we're talking about a variant of your alternative 2.
>> Generally 1 gives a nicer API. But if you have any inheritance and
> No inheritance or virtual stuff, as of yet, so not a concern.
Ok, that makes it simpler. Then go for 1. I would have inheritance
|
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.