Reply to post: Re: not-so-smart with pointers

Carnegie-Mellon Uni emits 'don't be stupid' list for C++ developers

DrXym Silver badge

Re: not-so-smart with pointers

"smart pointers are for programmers that understand when to let the language do their work for them."

Smart pointers aren't part of the language. Nor are strings or a bunch of other things that other languages take for granted.

Instead they're implemented by templates. While that's better than nothing it's certainly not as good as proper intrinsic types that can be checked by the compiler, generate efficient code and meaningful errors during compilation.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019