diff --git a/dyaml/zerostring.d b/dyaml/zerostring.d index ecaeb21..841a097 100644 --- a/dyaml/zerostring.d +++ b/dyaml/zerostring.d @@ -44,7 +44,7 @@ struct ZeroString(string TypeName) } ///Test for equality with another string. - bool opEquals(const ref ZeroString str) const nothrow @trusted + bool opEquals(const ZeroString str) const nothrow @trusted { return isNull ? str.isNull : str.isNull ? false : (0 == strcmp(str_, str.str_));