Can't use std.algorithm.remove on a char[]?

TheGag96 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Apr 30 09:44:24 PDT 2016


I was just writing some code trying to remove a value from a 
character array, but the compiler complained "No overload matches 
for remove", and if I specifically say use std.algorithm.remove() 
the compiler doesn't think it fits any definition. For reference, 
this would be all I'm doing:

char[] thing = ['a', 'b', 'c'];
thing = thing.remove(1);

Is this a bug? std.algorithm claims remove() works on any forward 
range...


More information about the Digitalmars-d-learn mailing list