diff options
| author | Eugen Wissner <belka@caraus.de> | 2017-06-01 22:36:38 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2017-06-01 22:36:38 +0200 |
| commit | bc32511254361e4d8ff58270433d9aeb1f965c64 (patch) | |
| tree | 99ba62262730b56e6b2fa0d97b0375c46b88d937 | |
| parent | f30972f9486d9e89f2c9d94d1dd2a383e985301c (diff) | |
| download | tanya-bc32511254361e4d8ff58270433d9aeb1f965c64.tar.gz | |
Fix template parameters for Set
| -rw-r--r-- | source/tanya/container/set.d | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/tanya/container/set.d b/source/tanya/container/set.d index fa52fa0..d18c723 100644 --- a/source/tanya/container/set.d +++ b/source/tanya/container/set.d @@ -239,8 +239,8 @@ struct Set(T) * * Returns: $(D_KEYWORD this). */ - ref typeof(this) opAssign(S)(ref R that) - if (is(Unqual!R == Set)) + ref typeof(this) opAssign(S)(ref S that) + if (is(Unqual!S == Set)) { this.data = that.data; this.lengthIndex = that.lengthIndex; @@ -248,8 +248,8 @@ struct Set(T) } /// Ditto. - ref typeof(this) opAssign(S)(R that) @trusted - if (is(R == Set)) + ref typeof(this) opAssign(S)(S that) @trusted + if (is(S == Set)) { swap(this.data, that.data); swap(this.lengthIndex, that.lengthIndex); |
