We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299be1d commit 68c803bCopy full SHA for 68c803b
include/xtensor/xcontainer.hpp
@@ -52,6 +52,14 @@ namespace xt
52
{
53
using type = std::allocator<T>; // fake allocator for testing
54
};
55
+
56
57
+ template <class T, std::size_t N>
58
+ struct allocator_type_impl<const_array<T, N>>
59
+ {
60
+ using type = std::allocator<T>; // fake allocator for testing
61
+ };
62
63
}
64
65
template <class T>
include/xtensor/xshape.hpp
@@ -351,6 +351,12 @@ namespace xt
351
352
static constexpr bool value = true;
353
354
355
356
+ struct is_array<const_array<T, N>>
357
358
+ static constexpr bool value = true;
359
360
361
template <class S>
362
struct is_fixed : std::false_type
0 commit comments