forked from qt-creator/qt-creator
Projects: Fix deprecated iterator
std::iterator is deprecated in C++ 17. The aliases should be set directly. Change-Id: Iafee0a76ce7368797288bab0ccbb2abaf74a7b54 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Wojciech Smigaj <w.smigaj@gmail.com>
This commit is contained in:
@@ -73,8 +73,14 @@ namespace Internal {
|
||||
|
||||
/// An output iterator whose assignment operator appends a clone of the operand to the list of
|
||||
/// children of the WrapperNode passed to the constructor.
|
||||
class Appender : public std::iterator<std::output_iterator_tag, void, void, void, void>
|
||||
class Appender
|
||||
{
|
||||
using iterator_category = std::output_iterator_tag;
|
||||
using value_type = void;
|
||||
using difference_type = void;
|
||||
using pointer = void;
|
||||
using reference = void;
|
||||
|
||||
public:
|
||||
explicit Appender(WrapperNode *parent) : m_parent(parent) {}
|
||||
|
||||
|
Reference in New Issue
Block a user