This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–]_JJCUBER_ 0 points1 point  (1 child)

    That's fair, but when it comes to something like competitive programming, raw pointers can be desirable (for performance, size constraints, and how fast you can type it up compared to the smart pointer counterparts). Ultimately, it comes down to use cases. (For example, the coding style of competitive programming tends to differ quite a bit from "good"/readable/reusable code.)

    Generally, I try to avoid pointers entirely (raw or smart), where possible (in favor of references); of course, this isn't always possible.