diff --git a/source/poodinis/container.d b/source/poodinis/container.d index 3b85e9c..50a6b43 100644 --- a/source/poodinis/container.d +++ b/source/poodinis/container.d @@ -24,6 +24,7 @@ import std.string; import std.algorithm; import std.concurrency; import std.traits; +import std.compiler; debug { import std.stdio; @@ -119,7 +120,10 @@ synchronized class DependencyContainer { private ResolveOption persistentResolveOptions; ~this() { - clearAllRegistrations(); + pragma(msg, __VERSION__); + if (!(vendor == Vendor.digitalMars && __VERSION__ == 2066)) { + clearAllRegistrations(); + } } /**