News for hackers. Stuff that matters.
Re:My favorite Rust function by perspective1 on Saturday October 12, 2019 @07:17PM (#21237022)
Tell that to the enormous heap object you just forgot you made earlier.
Re:My favorite Rust function by klipt on Saturday October 12, 2019 @07:21PM (#21237041)
It would work with an object held by unique_ptr though, exactly like this Rust example.
Re:My favorite Rust function by saagarjha on Saturday October 12, 2019 @07:21PM (#21237040)
You’re not using std::unique_ptr to manage that?