Delegating constructor needed when both moving and accessing in the same constructor
| 1379 | struct private_ctor {}; |
| 1380 | // Delegating constructor needed when both moving and accessing in the same constructor |
| 1381 | array_t(private_ctor, |
| 1382 | ShapeContainer &&shape, |
| 1383 | StridesContainer &&strides, |
| 1384 | const T *ptr, |
| 1385 | handle base) |
| 1386 | : array(std::move(shape), std::move(strides), ptr, base) {} |
| 1387 | |
| 1388 | public: |
| 1389 | static_assert(!detail::array_info<T>::is_array, "Array types cannot be used with array_t"); |