summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/ScopedArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/ScopedArray.h')
-rw-r--r--cpp/include/IceUtil/ScopedArray.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/ScopedArray.h b/cpp/include/IceUtil/ScopedArray.h
index 82f85a9dbf1..3a64076f26d 100644
--- a/cpp/include/IceUtil/ScopedArray.h
+++ b/cpp/include/IceUtil/ScopedArray.h
@@ -25,6 +25,12 @@ public:
{
}
+ ScopedArray(const ScopedArray& other)
+ {
+ _ptr = other._ptr;
+ other._ptr = 0;
+ }
+
~ScopedArray()
{
if(_ptr != 0)