On Saturday, 20 May 2017 at 11:15:57 UTC, Moritz Maxeiner wrote:
Because `element = tmp` destroys `element`, which you allocated filled with zeroes.
The destructor will run for each `element`.

Right, I get it because the destructors running on the struct that is being replaced. Doh!

Reply via email to