Skip to content

Commit f3580fa

Browse files
Add missing default constructor for stride iterator
It's a requirement for being adapted by std::reverse_iterator
1 parent 2f59002 commit f3580fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/xtensor-python/pystrides_adaptor.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ namespace xt
8989
using iterator_category = std::random_access_iterator_tag;
9090
using shape_pointer = typename pystrides_adaptor<N>::shape_type;
9191

92+
pystrides_iterator() = default;
93+
9294
inline pystrides_iterator(pointer current, shape_pointer shape)
9395
: p_current(current)
9496
, p_shape(shape)

0 commit comments

Comments
 (0)