When coding some random stuff a few weeks ago I made a new singleton template class, its even easier to use and fewer lines of code.