Singleton Classes

Hi all,

I've been programming in C++ for a while now and recently came across the idea of a singleton class. I've done a bit of research and now understand the concept, why they're useful etc. However, I've also found many conflicting demonstrations on how to correctly design and implement a singleton class. So basically I'm just looking for an example/demonstration of implementing a simple and 'correct' singleton class.

Thanks in advance guys.
Topic archived. No new replies allowed.