refs #937 Resolved clazy warnings: rule of three.

This commit is contained in:
Mathew Sutcliffe
2017-04-15 01:28:23 +01:00
parent 3ea9e33e6b
commit b20ebd6dfd
15 changed files with 60 additions and 13 deletions

View File

@@ -58,6 +58,9 @@ namespace BlackMisc
return *new (this) OutputIterator(other);
}
//! Destructor.
~OutputIterator() = default;
private:
F m_func;
};
@@ -389,6 +392,9 @@ namespace BlackMisc
//! Move assignment.
ConstForwardIterator &operator =(ConstForwardIterator &&other) noexcept { m_pimpl.reset(other.m_pimpl.take()); return *this; }
//! Destructor.
~ConstForwardIterator() = default;
//! Create a new iterator with a specific implementation type.
//! \tparam I Becomes the iterator's implementation type.
//! \param i Initial value for the iterator. The value is copied.
@@ -513,6 +519,9 @@ namespace BlackMisc
//! Move assignment.
ConstRandomAccessIterator &operator =(ConstRandomAccessIterator &&other) noexcept { m_pimpl.reset(other.m_pimpl.take()); return *this; }
//! Destructor.
~ConstRandomAccessIterator() = default;
//! Create a new iterator with a specific implementation type.
//! \tparam I Becomes the iterator's implementation type.
//! \param i Initial value for the iterator. The value is copied.
@@ -693,6 +702,9 @@ namespace BlackMisc
//! Move assignment.
RandomAccessIterator &operator =(RandomAccessIterator &&other) noexcept { m_pimpl.reset(other.m_pimpl.take()); return *this; }
//! Destructor.
~RandomAccessIterator() = default;
//! Create a new iterator with a specific implementation type.
//! \tparam I Becomes the iterator's implementation type.
//! \param i Initial value for the iterator. The value is copied.