logoalt Hacker News

bluGilltoday at 11:15 AM1 replyview on HN

Much has changed for me since I used smart pointers where possible - which is the vast majority of the time. I am currently telling somebody you can't change a QString to a C string even though the C string probably won't overflow in that use. I have changed.


Replies

usrnmtoday at 12:22 PM

Smart pointers existed long before C++11. std::auto_ptr was a mistake, but it wasn't the only option

show 1 reply