This commit is contained in:
bluehero 2017-08-05 16:53:45 +08:00
parent f7dd496cdd
commit 7c1f208253

View File

@ -2168,6 +2168,10 @@ public:
}
#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.
/*!
\param rhs Another document.
@ -2183,6 +2187,10 @@ public:
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
/*!
Helper function to enable support for common swap implementation pattern based on \c std::swap: