🚨 fix compiler warnings

This commit is contained in:
Niels Lohmann 2019-07-12 21:05:16 +02:00
parent 104c5c1996
commit b17440c12f
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
4 changed files with 37 additions and 11 deletions

View file

@ -128,6 +128,19 @@ class iter_impl
iter_impl(const iter_impl<const BasicJsonType>& other) noexcept
: m_object(other.m_object), m_it(other.m_it) {}
/*!
@brief converting assignment
@param[in] other const iterator to copy from
@return const/non-const iterator
@note It is not checked whether @a other is initialized.
*/
iter_impl& operator=(const iter_impl<const BasicJsonType>& other) noexcept
{
m_object = other.m_object;
m_it = other.m_it;
return *this;
}
/*!
@brief converting constructor
@param[in] other non-const iterator to copy from
@ -138,7 +151,7 @@ class iter_impl
/*!
@brief converting assignment
@param[in,out] other non-const iterator to copy from
@param[in] other non-const iterator to copy from
@return const/non-const iterator
@note It is not checked whether @a other is initialized.
*/