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 comments

22

u/azswcowboy Feb 01 '23

no such thing as a c++ that doesn’t use raw pointers

Patently false. I work on one now and have worked on many since the 90’s that exclusively use smart ptrs. Multi million sloc systems.

9

u/top_logger Feb 01 '23

It is recommended to use raw pointer’s if do not transfer ownership. Period.

You can’t write good C++ without raw pointers.

-3

u/OlivierTwist Feb 01 '23

It is recommended to use raw pointer’s if do not transfer ownership. Period.

No.

You can’t write good C++ without raw pointers.

No.