From: Jacek S. <arn...@gm...> - 2007-11-11 16:45:14
|
> Unfortunately, this introduces a dependency on the ordering of C++ static > initialisers in separate translation units - which is undefined by the C++ > spec, as far as I can see. didn't think of that.. > The simplest, but less than ideal, fix I've found is to move the common > control check in the Seed constructor into WidgetListView::create. Better > ideas welcome - especially ones which don't do the check on every list view > creation! usually a static (member) function that returns a reference to a static local variable does the trick and initializes just once in natural order... > > Note that the most likely reason this has affected me and not others is that > I'm probably the only one building with MSVC. I am only to assume GCC is > being lucky here, as I can't find any indication that it's actually a bug in > either compiler, it's just undefined behaviour, which is a right pain. > yup /J |