Hi Fredrik, Thanks for the link, the suggestion of depends_on<> does look to be a good thing in our context, it will break the ABI though so it's not an approach we could use in the OSG-2.8 branch. Your suggestion of an explictly initializer in singleton implementation would be less elegant but would be the approach to use in the OSG-2.8 branch.
I'll have a look at add a depends_on feature into the problem class you have see. Which verson of the OSG are you currently using? Robert. On Thu, Jun 4, 2009 at 9:21 PM, Fredrik Orderud<[email protected]> wrote: > I've just discovered a potential solution for the initialization order for > static objects. You can use the "depends_on"-pattern to let your classes > inherit their dependencies. > > http://www.entropygames.net/index.php?option=com_content&view=article&id=52 > > I don't know the OSG code enough in detail to know if this would fit into the > design, but it is certainly an elegant solution. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=13532#13532 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

