From c9e889723b7af832322d178975e6e440d6cd3ae5 Mon Sep 17 00:00:00 2001 From: LDA Date: Mon, 26 Jun 2023 11:48:27 -0700 Subject: resolved most of the compiler warnings/errors under gcc also update xxhash and tinyformat --- source/core/StarPythonic.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/core/StarPythonic.hpp') diff --git a/source/core/StarPythonic.hpp b/source/core/StarPythonic.hpp index 014e14e..0bfdc50 100644 --- a/source/core/StarPythonic.hpp +++ b/source/core/StarPythonic.hpp @@ -303,7 +303,13 @@ namespace RangeHelper { STAR_EXCEPTION(RangeException, StarException); template -class RangeIterator : public std::iterator { +class RangeIterator { + using iterator_category = std::random_access_iterator_tag; + using value_type = Value; + using difference_type = Diff; + using pointer = Value*; + using reference = Value&; + public: RangeIterator() : m_start(), m_end(), m_diff(1), m_current(), m_stop(true) {} @@ -342,7 +348,7 @@ public: return *this; } - RangeIterator operator-=(Diff steps) const { + RangeIterator operator-=(Diff steps) { m_stop = false; sanity(); -- cgit v1.2.3