mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
doc: Add and fix comments about never destroyed objects
This commit is contained in:
@@ -22,8 +22,8 @@ BCLog::Logger& LogInstance()
|
||||
* access the logger. When the shutdown sequence is fully audited and tested,
|
||||
* explicit destruction of these objects can be implemented by changing this
|
||||
* from a raw pointer to a std::unique_ptr.
|
||||
* Since the destructor is never called, the logger and all its members must
|
||||
* have a trivial destructor.
|
||||
* Since the ~Logger() destructor is never called, the Logger class and all
|
||||
* its subclasses must have implicitly-defined destructors.
|
||||
*
|
||||
* This method of initialization was originally introduced in
|
||||
* ee3374234c60aba2cc4c5cd5cac1c0aefc2d817c.
|
||||
|
||||
Reference in New Issue
Block a user