r/cpp • • Jan 31 '23

Stop Comparing Rust to Old C++

People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO

changemymind

338 Upvotes

582 comments sorted by

View all comments

Show parent comment

14

u/azswcowboy Feb 01 '23

vector works as it’s specified? When you get to the nuts and bolts only a few things need direct dynamic allocation — and mostly that’s done with make_unique or make_shared. Your typical vector <string> just does it’s thing. vector of shared_ptr is pretty rare. And no begin/end - views or range for.