Skip to content

Commit a159751

Browse files
authored
Merge branch 'master' into replacing_is_array_with_has_fixed_size_in_xadapt
2 parents 584235b + 3084585 commit a159751

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/xtensor/xadapt.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ namespace xt
390390
* @param shape the shape of the xtensor_fixed_adaptor
391391
*/
392392
template <layout_type L = XTENSOR_DEFAULT_LAYOUT, class C, std::size_t... X,
393-
XTL_REQUIRES(std::is_pointer<C>)>
393+
XTL_REQUIRES(std::is_pointer<std::remove_reference_t<C>>)>
394394
inline auto adapt(C&& pointer, const fixed_shape<X...>& /*shape*/)
395395
{
396396
using buffer_type = xbuffer_adaptor<C, xt::no_ownership, detail::default_allocator_for_ptr_t<C>>;

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)