04-30-2015, 04:04 AM
Mostly this project has in the past gone for option 2. Its only recently that we've started moving over to a third option which is newly safer in c++11. Create a free/static getter function with a local static variable. See cLogger::GetInstance() for an example.