Gohliath

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

348 Neutral

About Gohliath

  • Rank
    Newbie
  1. This singleton keeps crashing.

    may help http://scottbilas.com/publications/gem-singleton/ a little description of that singleton   that version got updated already and replaced  Singleton( void ) { assert(!ms_singleton); int offset = (int)(T*)1 - (int)(Singleton *)(T*)1; ms_singleton = (T*)((int)this + offset); } with  Singleton( void ) { assert( !ms_singleton ); ms_singleton = static_cast <T*> (this); }