From b70c20d284eccb5bb9deced9710130778e1d6098 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 16 Mar 2020 14:13:25 +1100 Subject: [PATCH] region: support default construction of step iterator This allows use in some std::algorithms that assume the iterator conforms to LegacyIterator --- region.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/region.hpp b/region.hpp index b9caf72b..ad17285b 100644 --- a/region.hpp +++ b/region.hpp @@ -146,6 +146,12 @@ namespace cruft { hi (_hi) { ; } + iterator () + : cursor {} + , lo {} + , hi {} + { ; } + const point_t& operator* (void) const& { return cursor; }