Brief bookclub talk I gave at work introducing the singleton design pattern in C++.Chapter 15 from Hands-On Design Patterns with C++ by Fedor G. Pikus. Source code:singleton.hpp | singleton.cpp Share this: Click to share on Facebook (Opens in new window) Facebook Click to share on X (Opens in new window) X Click to share on LinkedIn (Opens in new window) LinkedIn Click to email a link to a friend (Opens in new window) Email Like this:Like Loading... Related
Local static variable initialization is thread-safe from C++11 standard onwards.