From b1dd01fca894ff9eb2c860032e855d602eb427a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miodrag=20Milanovi=C4=87?= Date: Mon, 30 Jan 2023 15:28:01 +0100 Subject: plib/plist.h: Stop using deprecated std::iterator template. (#10864) --- src/lib/netlist/plib/plists.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/netlist/plib/plists.h b/src/lib/netlist/plib/plists.h index 6bb7db69792..2e389f34b54 100644 --- a/src/lib/netlist/plib/plists.h +++ b/src/lib/netlist/plib/plists.h @@ -203,12 +203,17 @@ namespace plib { element_t * m_prev; }; - struct iter_t final : public std::iterator + struct iter_t final { private: element_t * p; public: using tag = std::integral_constant; + using iterator_category = std::forward_iterator_tag; + using value_type = LC; + using pointer = value_type *; + using reference = value_type &; + using difference_type = std::ptrdiff_t; explicit constexpr iter_t(element_t * x) noexcept : p(x) { } -- cgit v1.2.3