• 0 Posts
  • 1 Comment
Joined 11 months ago
cake
Cake day: August 20th, 2023

help-circle
  • box::new is pretty directly analogous to std::make_unique (factory for unique_ptr), in general rust’s heap allocating types map to c++’s smart pointer types, which are basically universally recommended over raw new/delete. So another column where rust just gives you the one best C++ feature where it still has 4 supported versions.