From: Warren Young Date: December 1 2007 6:25am Subject: Re: Eyeballs needed on new reference counted pointer template List-Archive: http://lists.mysql.com/plusplus/7206 Message-Id: <4750FE51.1010004@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jonathan Wakely wrote: > checking if (this ==&rhs) on *every* assignment is > what's really wasteful. In 99.9% of assignments the rhs.use_count() > goes up, and this->use_count() goes down. It's only wasteful in the > 0.1% of cases where this == &rhs and the same refcount goes up and > down. okayfine :) I was just confused about whether the T* case was implicitly protected. I've deconfused (confissioned?) myself now.