23 Mar
                
                    2008
                
            
            
                23 Mar
                
                '08
                
            
            
            
        
    
                10:06 p.m.
            
        Hmm - I expicitly test to guarentee that that get_instance is never called after main is invoked so I would have to look into thi sin more detail. Robert Ramey Sohail Somani wrote:
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.