hi gang, a general question for discussion. i'm interested in thoughts on why to preserve 'ref_ptr' vs transitioning to an external reference-counted pointer, like boost::shared_ptr, or perhaps the tr1 shared pointer (based on the boost version).
ideas? thoughts? bob ps - neil, nice cleanup and addition, btw. thanks! On Wed, Oct 1, 2008 at 3:29 PM, Jean-Sébastien Guay <[EMAIL PROTECTED]> wrote: > 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 > -- bob kuehne founder and ceo - blue newt software www.blue-newt.com 734/834-2696 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
