
27 Jul
2008
27 Jul
'08
2:46 p.m.
On Sun, 2008-07-27 at 16:28 +0200, Alp Mestan wrote:
I think the safety goes first. So build you share_ptr<X> the way you do, IMO.
That wasn't the question. I am capable of making the decision if I need to - and it will depend on the context whether safety or efficiency is more important. I don't think there is a general answer and that's the problem. That said, the real question is: Do I have to make that decision or is there any way to have both safety and efficiency? Regards, Daniel