diff --git a/single_include/flux.hpp b/single_include/flux.hpp index 7ebd0367..3b19f366 100644 --- a/single_include/flux.hpp +++ b/single_include/flux.hpp @@ -3802,11 +3802,12 @@ struct reverse_adaptor : inline_sequence_base> while (cur != end) { flux::dec(self.base_, cur); if (!std::invoke(pred, flux::read_at(self.base_, cur))) { + flux::inc(self.base_, cur); break; } } - return cursor_type(flux::inc(self.base_, cur)); + return cursor_type(cur); } }; };