From 78d1de6127e097963e2e68d409ee1eec94e6b0c6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 24 Dec 2019 05:21:40 -0500 Subject: [PATCH] Update documentation --- smartptr.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/smartptr.h b/smartptr.h index 0e330631e..04cb9a420 100644 --- a/smartptr.h +++ b/smartptr.h @@ -31,8 +31,9 @@ template 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 Issue 48: "Use of auto_ptr causes dirty compile under C++11" +/// std::auto_ptr in C++11 (deprecated) and std::unique_ptr in C++03 (non-existent). +/// \bug Issue 48: "Use of auto_ptr +/// causes dirty compile under C++11" template class member_ptr { public: @@ -56,7 +57,7 @@ template class member_ptr return old_p; } - void reset(T *p = 0); + void reset(T *p = NULLPTR); protected: member_ptr(const member_ptr& rhs); // copy not allowed @@ -128,7 +129,7 @@ template clonable_ptr& clonable_ptr::operator=(const clonable_pt template 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& rhs);