From f3580fa316823c8aab6356ed35ea4fd4fcfad81c Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 1 Aug 2025 18:22:21 +0200 Subject: [PATCH] Add missing default constructor for stride iterator It's a requirement for being adapted by std::reverse_iterator --- include/xtensor-python/pystrides_adaptor.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xtensor-python/pystrides_adaptor.hpp b/include/xtensor-python/pystrides_adaptor.hpp index fde929a..bde3923 100644 --- a/include/xtensor-python/pystrides_adaptor.hpp +++ b/include/xtensor-python/pystrides_adaptor.hpp @@ -89,6 +89,8 @@ namespace xt using iterator_category = std::random_access_iterator_tag; using shape_pointer = typename pystrides_adaptor::shape_type; + pystrides_iterator() = default; + inline pystrides_iterator(pointer current, shape_pointer shape) : p_current(current) , p_shape(shape)