From 4ad7215da25cb1a0022e6d6c7975aa7647314217 Mon Sep 17 00:00:00 2001 From: Mykola Vankovych Date: Fri, 15 Jul 2022 12:37:54 +0200 Subject: [PATCH] fixing pointer type traits in xadapt. --- include/xtensor/xadapt.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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>;