On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote:
auto makeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc, size_t[] lengths){ if (lengths.length == 1)
Looks like `static if` would fix your specific problem.
On Wednesday, 11 January 2017 at 19:23:10 UTC, Razvan Nitu wrote:
auto makeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc, size_t[] lengths){ if (lengths.length == 1)
Looks like `static if` would fix your specific problem.