Fixed fix for Map.save

This commit is contained in:
Andrei Alexandrescu 2010-07-04 21:40:26 +00:00
parent 111b871794
commit 3c95b5549f

View file

@ -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;
}
}