From: wessels <> Date: Tue, 22 Nov 2005 05:45:16 +0000 (+0000) Subject: Added simple operator !() method. X-Git-Tag: SQUID_3_0_PRE4~521 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be702f780fcb37c605866077989d6737cb5a7b05;p=thirdparty%2Fsquid.git Added simple operator !() method. This was done for ICAP integration. --- diff --git a/include/RefCount.h b/include/RefCount.h index 0ad052eb4d..cf47b5790c 100644 --- a/include/RefCount.h +++ b/include/RefCount.h @@ -1,6 +1,6 @@ /* - * $Id: RefCount.h,v 1.8 2003/08/04 22:14:37 robertc Exp $ + * $Id: RefCount.h,v 1.9 2005/11/21 22:45:16 wessels Exp $ * * DEBUG: section xx Refcount allocator * AUTHOR: Robert Collins @@ -66,6 +66,8 @@ public: return *this; } + bool operator !() const { return !p_; } + C const * operator-> () const {return p_; } C * operator-> () {return const_cast(p_); }