summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/UniqueRef.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/UniqueRef.h')
-rw-r--r--cpp/include/Ice/UniqueRef.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/Ice/UniqueRef.h b/cpp/include/Ice/UniqueRef.h
index f12df19ed4f..3a2b9fcc2ba 100644
--- a/cpp/include/Ice/UniqueRef.h
+++ b/cpp/include/Ice/UniqueRef.h
@@ -47,7 +47,11 @@ public:
void reset(R ref = 0)
{
- assert(ref == 0 || ref != _ref);
+ //
+ // Support "self-reset" for CF objects. This is useful if CF allocation methods return
+ // the same object with an increased reference count.
+ //
+ //assert(ref == 0 || ref != _ref);
if(_ref != 0)
{