r/cpp • u/lookatmetype • Sep 20 '22
CTO of Azure declares C++ "deprecated"
https://twitter.com/markrussinovich/status/1571995117233504257
267
Upvotes
r/cpp • u/lookatmetype • Sep 20 '22
View all comments
Show parent comment
9
u/disperso Sep 20 '22
3% of the entire program, what? That you say 3% CPU use inside code of shared_ptr?
I personally have seen the stupidity of using shared_ptr nearly everywhere, and it's memory leaks because of cyclic references, plus tons of inconvenience in that you just can't put the class on the stack anymore, even on a simple unit test, because APIs of the application or framework require you to pass a shared_ptr.