summaryrefslogtreecommitdiff
path: root/src/context/cdo.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-09-01 21:02:07 +0000
committerMorgan Deters <mdeters@gmail.com>2010-09-01 21:02:07 +0000
commit3bfa95fd5044257e41b5276dea2e0f3ac036f457 (patch)
treee2fd4bbfacf1d3d2ba1331dd814ccc2bc647c0f2 /src/context/cdo.h
parentd8c37e4d1cbe1c99b1b5fc250085419b9de4e513 (diff)
added documentation, closes bug 97
Diffstat (limited to 'src/context/cdo.h')
-rw-r--r--src/context/cdo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/context/cdo.h b/src/context/cdo.h
index 20c512fbc..ba4b368a8 100644
--- a/src/context/cdo.h
+++ b/src/context/cdo.h
@@ -85,6 +85,9 @@ public:
* This version takes an argument that specifies whether this CDO<>
* was itself allocated in context memory. If it was, it is linked
* with the current scope rather than scope 0.
+ *
+ * WARNING: Read the notes in src/context/context.h on "Gotchas when
+ * allocating contextual objects with non-standard allocators."
*/
CDO(bool allocatedInCMM, Context* context) :
ContextObj(allocatedInCMM, context) {
@@ -111,6 +114,9 @@ public:
* This version takes an argument that specifies whether this CDO<>
* was itself allocated in context memory. If it was, it is linked
* with the current scope rather than scope 0.
+ *
+ * WARNING: Read the notes in src/context/context.h on "Gotchas when
+ * allocating contextual objects with non-standard allocators."
*/
CDO(bool allocatedInCMM, Context* context, const T& data) :
ContextObj(allocatedInCMM, context) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback