From 537f8db581412400b3260bf9f5ca202cc1cc400f Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Thu, 17 Aug 2023 08:08:55 +0800 Subject: [PATCH] fixup! silence clang error. use modern iterator traits --- gnucash/gnome-utils/gnc-tree-container.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnucash/gnome-utils/gnc-tree-container.hpp b/gnucash/gnome-utils/gnc-tree-container.hpp index 0a7b3ed3499..6c9f36e9087 100644 --- a/gnucash/gnome-utils/gnc-tree-container.hpp +++ b/gnucash/gnome-utils/gnc-tree-container.hpp @@ -71,9 +71,15 @@ class GncTreeData // Custom iterator class template -class GncTreeIter : public std::iterator +class GncTreeIter { public: + using iterator_category = std::forward_iterator_tag; + using value_type = ModelType; + using difference_type = ModelType; + using pointer = ModelType*; + using reference = ModelType&; + GncTreeIter(GtkTreeModel* model, std::optional iter) : m_model(model), m_iter(iter) {} GncTreeIter(GtkTreeModel* model) : m_model (model)