Skip to content

Commit d2009ca

Browse files
author
Mykola Vankovych
committed
changing static layout in xtsrided_view temporary_type to container's layout.
1 parent d1499d9 commit d2009ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xtensor/xstrided_view.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace xt
8181
using undecay_shape = S;
8282
using storage_getter = FST;
8383
using inner_storage_type = typename storage_getter::type;
84-
using temporary_type = typename detail::xtype_for_shape<S>::template type<typename xexpression_type::value_type, L>;
84+
using temporary_type = typename detail::xtype_for_shape<S>::template type<typename xexpression_type::value_type, xexpression_type::static_layout>;
8585
using storage_type = std::remove_reference_t<inner_storage_type>;
8686
static constexpr layout_type layout = L;
8787
};

0 commit comments

Comments
 (0)