Rewriting a c++ template to D (replacing iterator with ranges "properly")

aliak something at something.com
Fri Jan 26 14:23:09 UTC 2018


On Friday, 26 January 2018 at 14:16:04 UTC, aliak wrote:
>   range.front = false;
>   while (!range.empty) {
>     range.popFrontN(N);
>     range.front = false;
>   }
> }

Oops, this should be:

while (!range.empty) {
   range.front = false;
   range.popFrontN(N);
}



More information about the Digitalmars-d-learn mailing list