diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
commit | 99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch) | |
tree | bda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/ace/Refcounted_Auto_Ptr.cpp | |
parent | c4078c377d74290ebe4e66da0b4975da91732376 (diff) | |
download | ATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz |
undoing accidental deletion
Diffstat (limited to 'ACE/ace/Refcounted_Auto_Ptr.cpp')
-rw-r--r-- | ACE/ace/Refcounted_Auto_Ptr.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ACE/ace/Refcounted_Auto_Ptr.cpp b/ACE/ace/Refcounted_Auto_Ptr.cpp new file mode 100644 index 00000000000..7dd9d862b64 --- /dev/null +++ b/ACE/ace/Refcounted_Auto_Ptr.cpp @@ -0,0 +1,18 @@ +// $Id$ + +#ifndef ACE_REFCOUNTED_AUTO_PTR_CPP +#define ACE_REFCOUNTED_AUTO_PTR_CPP + +#include "ace/Refcounted_Auto_Ptr.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +template <class X, class ACE_LOCK> +ACE_Refcounted_Auto_Ptr<X, ACE_LOCK>::~ACE_Refcounted_Auto_Ptr (void) +{ + AUTO_REFCOUNTED_PTR_REP::detach (rep_); +} + +ACE_END_VERSIONED_NAMESPACE_DECL + +#endif /* !ACE_REFCOUNTED_AUTO_PTR_CPP */ |