summaryrefslogtreecommitdiff
path: root/smartptr.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-12-24 05:21:40 -0500
committerJeffrey Walton <noloader@gmail.com>2019-12-24 05:21:40 -0500
commit78d1de6127e097963e2e68d409ee1eec94e6b0c6 (patch)
treea3ae17ce0a8bfde025e0be6de33e66435e137b6b /smartptr.h
parentc7caaf4e14bb2c5e047a3f28bdd5b3cc79e05d6f (diff)
downloadcryptopp-git-78d1de6127e097963e2e68d409ee1eec94e6b0c6.tar.gz
Update documentation
Diffstat (limited to 'smartptr.h')
-rw-r--r--smartptr.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/smartptr.h b/smartptr.h
index 0e330631..04cb9a42 100644
--- a/smartptr.h
+++ b/smartptr.h
@@ -31,8 +31,9 @@ public:
/// \brief Pointer that overloads operator ->
/// \tparam T class or type
/// \details member_ptr is used frequently in the library to avoid the issues related to
-/// std::auto_ptr in C++11 (deprecated) and std::unique_ptr in C++03 (non-existent).
-/// \bug <a href="http://github.com/weidai11/cryptopp/issues/48">Issue 48: "Use of auto_ptr causes dirty compile under C++11"</a>
+/// std::auto_ptr in C++11 (deprecated) and std::unique_ptr in C++03 (non-existent).
+/// \bug <a href="http://github.com/weidai11/cryptopp/issues/48">Issue 48: "Use of auto_ptr
+/// causes dirty compile under C++11"</a>
template <class T> class member_ptr
{
public:
@@ -56,7 +57,7 @@ public:
return old_p;
}
- void reset(T *p = 0);
+ void reset(T *p = NULLPTR);
protected:
member_ptr(const member_ptr<T>& rhs); // copy not allowed
@@ -128,7 +129,7 @@ template <class T> clonable_ptr<T>& clonable_ptr<T>::operator=(const clonable_pt
template<class T> class counted_ptr
{
public:
- explicit counted_ptr(T *p = 0);
+ explicit counted_ptr(T *p = NULLPTR);
counted_ptr(const T &r) : m_p(0) {attach(r);}
counted_ptr(const counted_ptr<T>& rhs);