Hi,

On Wednesday 01 October 2008 21:43, Bob Kuehne wrote:
> 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?

In addition to Neils points:
Code like this:

shared_ptr<Node> node(new Node);
Node* rawNode = node.get();
shared_ptr<Node> nodePointerWithDifferentReferenceCountObject(rawNode);

This will end up with two different reference count instances for a single 
object instance.

Note that this kind of usage pattern happens quiet often in osg ...
... think of adding nodes to a group and adding the same node to an other 
group and many more.

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 

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

Reply via email to