mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-17 03:48:38 +00:00
Update documentation
This commit is contained in:
parent
c7caaf4e14
commit
78d1de6127
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user