< Back
Page 7 of 7
This chapter is from the book
Summary
In summary:
Avoid singletons: the pattern, not the single-instance abstraction.
Prefer a namespace to a class to model this type of abstraction.
Use static data carefully when implementing a singleton.
Understand the motivations for the Core Guidelines.
Review the Core Guidelines as the C++ language grows and evolves.
< Back
Page 7 of 7