forked from boostorg/serialization
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix singleton::is_destroyed and add comments
- A subclass of T is need to correctly track the lifetime of the singleton, so is_destroyed works reliably. - singleton<T> ctor is made protected so it cannot be created accidentally - Existing comments (mostly typos) are fixed - Additional comments are added detailing the usage and design choices made for the singleton to avoid people accidentally breaking it (again) Fixes boostorg#104
- Loading branch information
Showing
1 changed file
with
62 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters