Update documentation

This commit is contained in:
Jeffrey Walton 2019-12-24 05:21:40 -05:00
parent c7caaf4e14
commit 78d1de6127
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -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);