diff --git a/include/xtensor/xcontainer.hpp b/include/xtensor/xcontainer.hpp index d6d3c9b82..b457b8049 100644 --- a/include/xtensor/xcontainer.hpp +++ b/include/xtensor/xcontainer.hpp @@ -52,6 +52,14 @@ namespace xt { using type = std::allocator; // fake allocator for testing }; + + + template + struct allocator_type_impl> + { + using type = std::allocator; // fake allocator for testing + }; + } template diff --git a/include/xtensor/xshape.hpp b/include/xtensor/xshape.hpp index e9ee57826..119c6b089 100644 --- a/include/xtensor/xshape.hpp +++ b/include/xtensor/xshape.hpp @@ -351,6 +351,12 @@ namespace xt { static constexpr bool value = true; }; + + template + struct is_array> + { + static constexpr bool value = true; + }; template struct is_fixed : std::false_type