mirror of
https://github.com/dlang/phobos.git
synced 2025-05-11 06:28:28 +03:00
Fixed fix for Map.save
This commit is contained in:
parent
111b871794
commit
3c95b5549f
1 changed files with 3 additions and 1 deletions
|
@ -201,7 +201,9 @@ struct Map(alias fun, Range) if (isInputRange!(Range))
|
|||
static if (isForwardRange!Range)
|
||||
@property Map save()
|
||||
{
|
||||
return this;
|
||||
auto result = this;
|
||||
result._input = result._input.save;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue