--- struct S { ~this() {} } static assert(!hasElaborateDestructor!(S[0])); // Passes static assert( hasElaborateDestructor!(S[1])); // Fails ---
Pull: ://github.com/D-Programming-Language/phobos/pull/568 Shouldn't github paste pull link here?
(In reply to comment #1) > Pull: ://github.com/D-Programming-Language/phobos/pull/568 https://github.com/D-Programming-Language/phobos/pull/568
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/a6e38e347247b35bb8473f0e0b9084fb6cb43721 Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor https://github.com/D-Programming-Language/phobos/commit/0e42d76509f04e637a1a23a6bcadc1e0c3f111bd Merge pull request #568 from denis-sh/hasElaborateDestructor-fix Fix Issue 8037 - hasElaborateDestructor is false for non-zero-length static array of structs with elaborate destructor