Open t-moe opened 1 year ago
The shared scope (boost::di::extension::shared_config) destructs the singletons in the reverse order they were created.
The singletons are destructed in the order of their type_index. See https://github.com/boost-ext/di/blob/cpp14/extension/include/boost/di/extension/scopes/shared.hpp#L113-L119
T&
Expected Behavior
The shared scope (boost::di::extension::shared_config) destructs the singletons in the reverse order they were created.
Actual Behavior
The singletons are destructed in the order of their type_index. See https://github.com/boost-ext/di/blob/cpp14/extension/include/boost/di/extension/scopes/shared.hpp#L113-L119
Steps to Reproduce the Problem
T&
) in their constructorSpecifications