Mike Weiblen wrote:
Hi,
sounds like this falls under what Meyers describes in Item 4 of Effective C++
(3rd edition, p30)
"...the relative order of initialization of non-local static objects defined in
different translation units is undefined."
Singletons provide a mechanism to control that order.

  Ok, that does clarify what we're dealing with here. Thanks Mike!

Robert, does OSG have a lot of singleton-like (but not actual singleton) non-local static objects? I wasn't aware of any before this, but I'm sure there must be some. I'm trying to imagine how I would search for them, other than just trawling all the code.

--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
 "I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to