News for hackers. Stuff that matters.
Re:My favorite Rust function by MauranKilom on Saturday October 12, 2019 @10:32PM (#21237919)
It would have to be

void drop(std::unique_ptr<T> x) {}

Or, you know, just call someX.reset(); or do someX = nullptr;. The drop call would be way noisier: drop(std::move(someX));

There are no comments on this comment yet.