Hi Neil,

Nice work, I for one think it would be nice and would go a long way towards being able to use ref_ptr all the time to promote safe practices, instead of using raw pointers when needed (which is confusing to newbies).

Is the community aware of the 'unspecified_bool_type' idiom used within boost smart pointers to allow safe conversion to bool? If the community wishes I would be happy to add this feature.

You mean for testing a ref_ptr directly instead of having to use ref_ptr::valid() ? That would be nice too (though minor, it's just a little less verbose and matches pointer idioms).

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to