Mercurial > hg > orthanc-stone
comparison Resources/Conventions.txt @ 1308:adf234ecaa00 broker
Merge
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 04 Mar 2020 10:21:54 +0100 |
parents | c38c89684d83 |
children | 3d26447ddd28 |
comparison
equal
deleted
inserted
replaced
1307:8a28a9bf8876 | 1308:adf234ecaa00 |
---|---|
60 | 60 |
61 Pointers | 61 Pointers |
62 -------- | 62 -------- |
63 | 63 |
64 * As we are targeting C++03 (for VS2008 and LSB compatibility), use | 64 * As we are targeting C++03 (for VS2008 and LSB compatibility), use |
65 "std::auto_ptr<>" and "boost::shared_ptr<>" (*not* | 65 "std::unique_ptr<>" and "boost::shared_ptr<>" (*not* |
66 "std::shared_ptr<>"). | 66 "std::shared_ptr<>"). |
67 | 67 |
68 * The fact of transfering the ownership of one object to another must | 68 * The fact of transfering the ownership of one object to another must |
69 be tagged by naming the method "Acquire...()", and by providing a | 69 be tagged by naming the method "Acquire...()", and by providing a |
70 raw pointer. | 70 raw pointer. |
71 | 71 |
72 * Use "std::auto_ptr<>" if the goal is to internally store a pointer | 72 * Use "std::unique_ptr<>" if the goal is to internally store a pointer |
73 whose lifetime corresponds to the host object. | 73 whose lifetime corresponds to the host object. |
74 | 74 |
75 * The use of "boost::weak_ptr<>" should be restricted to | 75 * The use of "boost::weak_ptr<>" should be restricted to |
76 oracle/message handling. | 76 oracle/message handling. |
77 | 77 |