summaryrefslogtreecommitdiff
path: root/smartptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'smartptr.h')
-rw-r--r--smartptr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/smartptr.h b/smartptr.h
index 00dab210..c4f95753 100644
--- a/smartptr.h
+++ b/smartptr.h
@@ -6,6 +6,14 @@
NAMESPACE_BEGIN(CryptoPP)
+template<class T> class simple_ptr
+{
+public:
+ simple_ptr() : m_p(NULL) {}
+ ~simple_ptr() {delete m_p;}
+ T *m_p;
+};
+
template<class T> class member_ptr
{
public: