Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2008-03-23 17:06:34


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk