Deprecate put() as an OutputRange primitive

This commit is contained in:
2019-02-04 10:49:12 +01:00
parent 7af5c30820
commit bf197a6554
2 changed files with 10 additions and 38 deletions

View File

@ -389,12 +389,9 @@ do
static struct OutPutRange
{
int value;
void put(int value) @nogc nothrow pure @safe
in
{
assert(this.value == 0);
}
do
void opCall(int value) @nogc nothrow pure @safe
in (this.value == 0)
{
this.value = value;
}