improving std.array.array

David Nadlinger see at klickverbot.at
Sun Jul 22 06:04:17 PDT 2012


I hit some of the problems you described a little while ago. 
Jonathan and I came to the conclusion that the best solution is 
to default to the same element type as the passed range, while 
allowing any type which the element type is convertible to to be 
specified via an extra template parameter, just as you proposed.

I have a half-finished version (sans handling of narrow strings) 
lying around, but won't have time to polish it up for inclusion 
in the next few weeks, so feel free to go ahead.

David


More information about the Digitalmars-d mailing list