Original Post
hey all I tried using the code from the article in the book Game Programming Gems 1 called "An Automatic Singleton Utility" but I seem to always get an assert message. I don't understand why I am because I'm following everything from the book. Does anyone know if there's an error in the code? btw the assert return is from this part of the code:
static T& GetSingleton( void )
{ assert(ms_Singleton); return (*ms_Singleton); }
any ideas?