
23 Mar
2008
23 Mar
'08
6:33 p.m.
On Sun, 23 Mar 2008 11:15:55 -0800, Robert Ramey wrote:
base_object refers to void_cast which refers to a static object constructed at pre-main time. Look at the definition of base_object.
I assume you mean: template <class Derived, class Base> BOOST_DLLEXPORT void_caster_primitive<Derived,Base> const& void_caster_primitive<Derived,Base>::instance = void_caster_primitive<Derived,Base>::get_instance(); This is not guaranteed to be executed before main since void_caster_primitive<Derived,Base> requires dynamic initialization. My guess is that this is the problem. -- Sohail Somani http://uint32t.blogspot.com