Marke SingletonByRef functions scope
This commit is contained in:
parent
4acf163b42
commit
6072bfab68
@ -109,7 +109,7 @@ private struct SingletonByRef(E)
|
||||
this.element = &element;
|
||||
}
|
||||
|
||||
@property ref inout(E) front() inout return
|
||||
@property ref inout(E) front() inout return scope
|
||||
in
|
||||
{
|
||||
assert(!empty);
|
||||
@ -148,7 +148,7 @@ private struct SingletonByRef(E)
|
||||
return typeof(this)(*this.element);
|
||||
}
|
||||
|
||||
ref inout(E) opIndex(size_t i) inout return
|
||||
ref inout(E) opIndex(size_t i) inout return scope
|
||||
in
|
||||
{
|
||||
assert(!empty);
|
||||
|
Loading…
x
Reference in New Issue
Block a user