Skip to content

Commit 9525d1c

Browse files
authored
Merge pull request #2553 from BioDataAnalysis/fixing_xstrided_temporary_static_layout
changing static layout in xtsrided_view temporary_type to container's…
2 parents d1499d9 + d2009ca commit 9525d1c

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)