[osg-users] better use smart-pointers or plain pointers in this case?

2009-03-26 Thread Christian Sam
Hi, i'm working on a point-in-polygon test. my current implementation has a list with plain pointers that hold references to the polygons' properties. (i use them to ease the calculating of an inside-result for that polygons) Code: class FetchedPolygon { public:

Re: [osg-users] better use smart-pointers or plain pointers in this case?

2009-03-26 Thread Cory Riddell
Christian Sam wrote: i think if i use smart-pointers, i would be able to check if the actual polygons in the scenegraph are still valid (check the ref counter) without the need of a dirty flag. but if the polygons get changed/deleted (e.g. when i want to load a new set of polygon