cpp-to-rust-book icon indicating copy to clipboard operation
cpp-to-rust-book copied to clipboard

Heap allocation with `Box::new` has a caveat

Open Voronar opened this issue 1 year ago • 0 comments

https://github.com/locka99/cpp-to-rust-book/blob/master/12_memory_management/index.md?plain=1#L77 provides Rust example with a heap allocation, but it has a caveat.

Voronar avatar Jan 16 '24 15:01 Voronar