fix Issue 13000 - Casts should be removed to utilize features of inout

This commit is contained in:
k-hara 2014-06-28 15:57:43 +09:00
parent 19fa794617
commit 18efc8c5dc
2 changed files with 5 additions and 5 deletions

View file

@ -2071,9 +2071,9 @@ private:
return set.length - FD_SET_OFFSET;
}
final socket_t[] fds() inout @property
final inout(socket_t)[] fds() inout @property
{
return cast(socket_t[])set[FD_SET_OFFSET..FD_SET_OFFSET+count];
return cast(inout(socket_t)[])set[FD_SET_OFFSET..FD_SET_OFFSET+count];
}
}
else