From 2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 24 Nov 2006 23:49:50 +0000 Subject: Fixed size bug. --- src/sptr.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/sptr.h') diff --git a/src/sptr.h b/src/sptr.h index 51e27b0..d152fb4 100644 --- a/src/sptr.h +++ b/src/sptr.h @@ -64,6 +64,16 @@ public: return pData == src.pData; } + operator bool() + { + return pRefCnt != NULL; + } + + bool isSet() + { + return pRefCnt != NULL; + } + private: void decCount() { -- cgit v1.2.3