From e3d1c4ba045c6cfcefe1e594589a968a2a384227 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 Nov 2008 16:24:50 +0000 Subject: [PATCH] From Piotr Rak, "added bool conversion for ref_ptr, when no implicit conversion to T* is used." --- include/osg/ref_ptr | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/osg/ref_ptr b/include/osg/ref_ptr index f65da28cc..86bb83fac 100644 --- a/include/osg/ref_ptr +++ b/include/osg/ref_ptr @@ -71,8 +71,20 @@ class ref_ptr friend bool operator != (const T* ptr, const ref_ptr& rp) { return (ptr!=rp._ptr); } bool operator < (const ref_ptr& rp) const { return (_ptr() const { return _ptr; } T* get() const { return _ptr; }