diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-09-01 21:02:07 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-09-01 21:02:07 +0000 |
commit | 3bfa95fd5044257e41b5276dea2e0f3ac036f457 (patch) | |
tree | e2fd4bbfacf1d3d2ba1331dd814ccc2bc647c0f2 /src/context/cdo.h | |
parent | d8c37e4d1cbe1c99b1b5fc250085419b9de4e513 (diff) |
added documentation, closes bug 97
Diffstat (limited to 'src/context/cdo.h')
-rw-r--r-- | src/context/cdo.h | 6 |
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) { |