Skip to content

Instantly share code, notes, and snippets.

@PoetaKodu
Last active January 28, 2017 16:36
Show Gist options
  • Save PoetaKodu/b5f035fdaaccefe339d1e9e72f88a454 to your computer and use it in GitHub Desktop.
Save PoetaKodu/b5f035fdaaccefe339d1e9e72f88a454 to your computer and use it in GitHub Desktop.
class CGame final
{
public:
~CGame();
CGame(const CGame &) = delete;
void operator=(const CGame &) = delete;
inline static CGame& Instance()
{
static CGame instance;
return instance;
}
private:
CGame();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment