From a812548359e95c78af559218b7d24bb320827269 Mon Sep 17 00:00:00 2001 From: gineshidalgo99 Date: Thu, 18 Jan 2018 22:16:12 -0500 Subject: [PATCH] Updated doc --- doc/library_how_to_develop.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/library_how_to_develop.md b/doc/library_how_to_develop.md index d12bcd11..f6234049 100644 --- a/doc/library_how_to_develop.md +++ b/doc/library_how_to_develop.md @@ -41,6 +41,11 @@ else 6. Functions arguments: 1. It should first include the variables to be edited, and secondtly the const variables. 2. Any variable that is not gonna be modified must be added with `const`. +7. Pointers: + 1. Pointers must be avoided if possible. + 2. If a pointer must be used, std::unique_ptr must be always be used. + 3. If the pointer must be shared, then std::shared_ptr. + 4. No `delete` keyword is allowed in OpenPose. -- GitLab