Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Dec 24, 2019
1 parent c7caaf4 commit 78d1de6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions smartptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ template <class T> class simple_ptr
/// \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:
Expand All @@ -56,7 +57,7 @@ template <class T> class member_ptr
return old_p;
}

void reset(T *p = 0);
void reset(T *p = NULLPTR);

protected:
member_ptr(const member_ptr<T>& rhs); // copy not allowed
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 78d1de6

Please sign in to comment.