https://issues.dlang.org/show_bug.cgi?id=12742

--- Comment #3 from bearophile_h...@eml.cc ---
It's also not @safe:


import std.algorithm: remove, SwapStrategy;
struct Foo {}
void main() @safe {
    Foo[] foos;
    foos.remove!(x => true, SwapStrategy.unstable);
    foos.remove!(x => true);
}


test.d(5,9): Error: safe function 'D main' cannot call system function
'test.main.remove!((x) => true, cast(SwapStrategy)0, Foo[]).remove'
test.d(6,9): Error: safe function 'D main' cannot call system function
'test.main.remove!((x) => true, cast(SwapStrategy)2, Foo[]).remove'

--

Reply via email to