[bind10-dev] Raw pointers "as needed" only, was: BIND 10 trac2320, updated....

Shane Kerr shane at isc.org
Wed Jan 9 16:31:39 UTC 2013


All,

On Wednesday, 2013-01-09 08:02:10 -0800, 
JINMEI Tatuya / 神明達哉 <jinmei at isc.org> wrote:
> than trying to be careful about deleting things manually.  As long as
> we manually new and delete things, we will never be free from leaks
> like this no matter how we try to be careful as humans overlook
> details.

I agree.

We had some concerns about the performance of "smart" pointers when we
started on the DNS side, but I think performance has been excellent, so
this should not be a motivation to use raw pointers in general.

In this particular case, it's a unit test, so performance is certainly
not a concern.

Cheers,

--
Shane

p.s. This is basically best practice #13 from _Effective C++_ right?


More information about the bind10-dev mailing list