atilaneves / automem

C++-style automatic memory management smart pointers for D
BSD 3-Clause "New" or "Revised" License
86 stars 15 forks source link

Cannot slice whole vector explicitly #45

Closed brianush1 closed 4 years ago

brianush1 commented 4 years ago

vector[0 .. vector.length] throws an error, when it clearly should be equivalent to vector[]. The culprit: https://github.com/atilaneves/automem/blob/master/source/automem/vector.d#L365

atilaneves commented 4 years ago

Valid. But weird that someone wouldn't vector[0 .. $] instead.