News for hackers. Stuff that matters.
Re:Increasing performance with static polymorphism (and othe... by WalterBright on Monday March 31, 2014 @05:06PM (#7504175)
scopebuffer's inclusion in Phobos was controversial. Many felt that its unusual design (such as lack of destructor), and ease of misuse, meant it shouldn't be there.
Re:Increasing performance with static polymorphism (and othe... by srean on Monday March 31, 2014 @05:44PM (#7504408)
Can't the destructor issue be mitigated by

    hasElaborateDestructor( )
that biotronic pointed me to ?

EDIT: To clarify, one could have two versions one with a destructor for non POD and the current one. The compiler dispatches to the appropriate one at compile time.

Re:Increasing performance with static polymorphism (and othe... by WalterBright on Monday March 31, 2014 @06:49PM (#7504831)
No, as that doesn't convert anything to POD.