mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #937 Resolved clazy warnings: rule of three.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user