mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
More implicit array to bool
This commit is contained in:
parent
42c151df49
commit
1818d190b5
6 changed files with 14 additions and 11 deletions
|
@ -1955,7 +1955,7 @@ void replaceInPlace(T, Range)(ref T[] array, size_t from, size_t to, Range stuff
|
|||
!is(T == const T) &&
|
||||
!is(T == immutable T))
|
||||
{
|
||||
if (overlap(array, stuff))
|
||||
if (overlap(array, stuff).length)
|
||||
{
|
||||
// use slower/conservative method
|
||||
array = array[0 .. from] ~ stuff ~ array[to .. $];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue