Commit 7c1f2082 authored by bluehero's avatar bluehero

modify

parent f7dd496c
...@@ -2168,6 +2168,10 @@ public: ...@@ -2168,6 +2168,10 @@ public:
} }
#endif #endif
// Allow assignment from ValueType.
// Refer to Effective C++ 3rd Edition/Item 33: Avoid hiding inherited names.
using ValueType::operator=;
//! Exchange the contents of this document with those of another. //! Exchange the contents of this document with those of another.
/*! /*!
\param rhs Another document. \param rhs Another document.
...@@ -2183,6 +2187,10 @@ public: ...@@ -2183,6 +2187,10 @@ public:
return *this; return *this;
} }
// Allow Swap from ValueType.
// Refer to Effective C++ 3rd Edition/Item 33: Avoid hiding inherited names.
using ValueType::Swap;
//! free-standing swap function helper //! free-standing swap function helper
/*! /*!
Helper function to enable support for common swap implementation pattern based on \c std::swap: Helper function to enable support for common swap implementation pattern based on \c std::swap:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment