Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    The keyword you are looking for is Singleton, and rather than trying to answer, here are a few links: When to use the Singleton and When should the Singleton pattern NOT be used? (Besides the obvious) Commented Jun 22, 2017 at 20:44
  • @user4581301, Thank you for the help. Commented Jun 22, 2017 at 21:02
  • You're reviewing C++ but have no experience with C++? Commented Jun 23, 2017 at 12:06
  • @Walter, I should probably not have used the word reviewing, as in I'm not doing a formal code review for correctness as an expert...If it helps you sleep better at night. Commented Jun 26, 2017 at 16:05