swig 1.3.39 wraps also operator bool.. we dont like this yet...
[enigma2.git] / lib / base / smartptr.h
index ac6b9eb0767fe8d8854e43043c63bc67e4c368f9..a2c6691f09097f2116b02cc4ef6e0b1957d7073d 100644 (file)
@@ -57,11 +57,10 @@ public:
 #ifndef SWIG
        T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; }
        T* &ptrref() { ASSERT(!ptr); return ptr; }
+       operator bool() const { return !!this->ptr; }
 #endif
        T* operator->() const { ptrAssert(ptr); return ptr; }
        operator T*() const { return this->ptr; }
-       
-       operator bool() const { return !!this->ptr; }
 };