Skip to content

Heap allocation with Box::new has a caveat #18

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Voronar opened this issue Jan 16, 2024 · 0 comments
Open

Heap allocation with Box::new has a caveat #18

Voronar opened this issue Jan 16, 2024 · 0 comments

Comments

@Voronar
Copy link

Voronar commented Jan 16, 2024

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant