Hi Neil,

I have now merged your changes, and fingers crossed they will port
just fine across all out platforms.

> 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.

Originally I did have method for using a ref_ptr<> as a bool, but the
code didn't port well back when I wrote it, we are talking 2000/2001
time frame so quite a while back...

Feel free to implement the safe type conversion to bool as it would be
useful addition as long as it compiles.

Another possible addition would be automatic conversion to a C
pointer, but this is something that submissions have also experimented
with in the past and failed to get working safely across platforms.
But as with all the ref_ptr<> changes it was a while back and we've
dropped one of most problem compilers of the bunch since then.  There
is also the big question about implicit conversion of types...

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to