diff --git a/include/xtensor/xadapt.hpp b/include/xtensor/xadapt.hpp index bf8150b1f..e32258fa3 100644 --- a/include/xtensor/xadapt.hpp +++ b/include/xtensor/xadapt.hpp @@ -89,7 +89,7 @@ namespace xt */ template >, - std::is_pointer)> + std::is_pointer>)> inline auto adapt(C&& pointer, const SC& shape, layout_type l = L) { static_assert(!xtl::is_integral::value, "shape cannot be a integer"); @@ -247,7 +247,7 @@ namespace xt */ template >, - std::is_pointer)> + std::is_pointer>)> inline auto adapt(C&& pointer, const SC& shape, layout_type l = L) { static_assert(!xtl::is_integral::value, "shape cannot be a integer"); @@ -390,7 +390,7 @@ namespace xt * @param shape the shape of the xtensor_fixed_adaptor */ template )> + XTL_REQUIRES(std::is_pointer>)> inline auto adapt(C&& pointer, const fixed_shape& /*shape*/) { using buffer_type = xbuffer_adaptor>;