Delegating constructor needed when both moving and accessing in the same constructor
| 1157 | struct private_ctor {}; |
| 1158 | // Delegating constructor needed when both moving and accessing in the same constructor |
| 1159 | array_t(private_ctor, |
| 1160 | ShapeContainer &&shape, |
| 1161 | StridesContainer &&strides, |
| 1162 | const T *ptr, |
| 1163 | handle base) |
| 1164 | : array(std::move(shape), std::move(strides), ptr, base) {} |
| 1165 | |
| 1166 | public: |
| 1167 | static_assert(!detail::array_info<T>::is_array, "Array types cannot be used with array_t"); |