Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Add opEquals overload into TickDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Feb 21, 2012
1 parent 54ee857 commit 50da267
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/time.d
Expand Up @@ -1681,6 +1681,12 @@ struct TickDuration
/++
operator overloading "=="
+/
bool opEquals(const TickDuration rhs) @safe const pure nothrow
{
return opEquals(rhs);
}

/// ditto
bool opEquals(ref const TickDuration rhs) @safe const pure nothrow
{
return length == rhs.length;
Expand Down

0 comments on commit 50da267

Please sign in to comment.