Fix template parameters for Set

This commit is contained in:
Eugen Wissner 2017-06-01 22:36:38 +02:00
parent f30972f948
commit bc32511254

View File

@ -239,8 +239,8 @@ struct Set(T)
* *
* Returns: $(D_KEYWORD this). * Returns: $(D_KEYWORD this).
*/ */
ref typeof(this) opAssign(S)(ref R that) ref typeof(this) opAssign(S)(ref S that)
if (is(Unqual!R == Set)) if (is(Unqual!S == Set))
{ {
this.data = that.data; this.data = that.data;
this.lengthIndex = that.lengthIndex; this.lengthIndex = that.lengthIndex;
@ -248,8 +248,8 @@ struct Set(T)
} }
/// Ditto. /// Ditto.
ref typeof(this) opAssign(S)(R that) @trusted ref typeof(this) opAssign(S)(S that) @trusted
if (is(R == Set)) if (is(S == Set))
{ {
swap(this.data, that.data); swap(this.data, that.data);
swap(this.lengthIndex, that.lengthIndex); swap(this.lengthIndex, that.lengthIndex);