]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added simple operator !() method.
authorwessels <>
Tue, 22 Nov 2005 05:45:16 +0000 (05:45 +0000)
committerwessels <>
Tue, 22 Nov 2005 05:45:16 +0000 (05:45 +0000)
This was done for ICAP integration.

include/RefCount.h

index 0ad052eb4d44db52226601d775114321204ef0e3..cf47b5790c78604ab03d65bb8153eb1b4bc6eac3 100644 (file)
@@ -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<C *>(p_); }