X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Frefptr.h;fp=source%2Fcore%2Frefptr.h;h=70cb17607361364de990f8828643f80af8d8da00;hp=21da15df6a21d2581f640e88245c969da5eb0f80;hb=8e1db641bb244980bc96ee9da4ba2f0dee8274ad;hpb=5763dd6e8089c97699cbcbd221afb7fe1841bcdd diff --git a/source/core/refptr.h b/source/core/refptr.h index 21da15d..70cb176 100644 --- a/source/core/refptr.h +++ b/source/core/refptr.h @@ -81,7 +81,7 @@ public: T *get() const { return data; } T &operator*() const { return *data; } T *operator->() const { return data; } - operator bool() const { return data!=0; } + explicit operator bool() const { return data!=0; } unsigned refcount() const { return (data ? counts->count : 0); }