On Monday, 31 March 2014 at 23:57:09 UTC, srean wrote:
Can't the destructor issue of scopebuffer be mitigated by usinghasElaborateDestructor( ) For instance have two versions one with a destructor for non POD and another without. The compiler dispatches to the appropriateone at compile time. There should not be any loss in performance.
Andrei suggested something similar on github a couple weeks ago: https://github.com/D-Programming-Language/phobos/pull/2014#issuecomment-37947056
