On Wed, Oct 24, 2007 at 12:26:17PM -0400, Richard Heck wrote:
> Andre Poenitz wrote:
> >Call a 'register' function from a constructor of a static dummy object.
> >This is sometimes troublesome with shared objects/older compiler,
> >though.
> >  
> Can you sketch this in pseudo code, perhaps? This is beyond my C++ 
> experience.

static struct FooInsetInitializer {
        FooInsetInitializer() { callSomeRegistrationFunction(); }
} dummy;


Andre'

Reply via email to