As a consequence, the singleton implementation has to be made thread-safe. Also implement the singleton pattern using a namespace, rather than a static instance.