Hi All,

I was working with observer_ptr and noticed that a const gets added to the
get() return type.  The observer_ptr::get() const method returns a const
T*.  I think the const modifier on the method should only apply to the
observer_ptr object, not to the object that is pointed at.  If the pointer
is pointing to a const T*, then the return type would be const without
modifying the return type of get().  Is this a bug, or is observer_ptr
designed this way for some reason?

Thanks,
Will
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to