User Tools

Site Tools


coding_guidelines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
coding_guidelines [2019/01/20 11:39]
beenisss Typos
coding_guidelines [2019/02/16 07:39] (current)
beenisss [Pointer, Object lifetime / Ownership]
Line 419: Line 419:
  
  
-===== Pointer, Object ​live time / Ownership ​ =====+===== Pointer, Object ​lifetime/​Ownership ​ =====
  
   * Follow the isocpp [[https://​github.com/​isocpp/​CppCoreGuidelines/​blob/​master/​CppCoreGuidelines.md#​es60-avoid-new-and-delete-outside-resource-management-functions | no naked new rule]]. Instead of using ''​new''​ and ''​delete''​ statements, use one of the following "smart pointers"​ to convey ownership right from the start:   * Follow the isocpp [[https://​github.com/​isocpp/​CppCoreGuidelines/​blob/​master/​CppCoreGuidelines.md#​es60-avoid-new-and-delete-outside-resource-management-functions | no naked new rule]]. Instead of using ''​new''​ and ''​delete''​ statements, use one of the following "smart pointers"​ to convey ownership right from the start:
coding_guidelines.1548002385.txt.gz ยท Last modified: 2019/01/20 11:39 by beenisss