I've stumbled in an annoying error while trying to remove an item from a dynamic array.<div>It's an array of Loc and a Loc is a simple struct of two integers.</div><div>when I used remove from std.algorithm I get</div>
<div><div>C:\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(5948): Error: incompatible types for ((pos) <= (from)): 'uint' and 'Loc'</div><div>C:\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(5949): Error: incompatible types for ((pos) < (from)): 'uint' and 'Loc'</div>
</div><div><br></div><div>is it suposed to do this?</div>