Skip to main content
Post Closed as "Needs more focus" by CommunityBot
edited tags
Link
Tetrad
  • 30.1k
  • 12
  • 96
  • 143
Post Made Community Wiki
Source Link
jmp97
  • 989
  • 1
  • 11
  • 19

C++: Smart pointers, Raw pointers, No Pointers?

Within the scope of developing games in C++, what are your preferred patterns in regard to use of pointers (be it none, raw, scoped, shared, or otherwise in between smart and dumb)?

You might consider

  • object ownership
  • ease of use
  • copy policy
  • overhead
  • cyclic references
  • target platform
  • use with containers