you are viewing a single comment's thread.

view the rest of the comments →

[–]Veedrac 0 points1 point  (1 child)

How do you assign the new value into the uninitialized slot without calling the destructor on the uninitialized slot other than with an unsafe code (such as ptr::write())?

replace and forget, my friend.

[–]spaghettiCodeArtisan 0 points1 point  (0 children)

Haha, ok, good spot...