Skip to content

Commit

Permalink
Merge pull request #1405 from 9rnsr/fix10567
Browse files Browse the repository at this point in the history
Add workaround to fix issue 10567
  • Loading branch information
WalterBright committed Jul 11, 2013
2 parents b8531d4 + 206d6f7 commit c85bb0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions std/variant.d
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,12 @@ public:
cast(void*) &temp);
}

// workaround for bug 10567 fix
int opCmp(ref const VariantN rhs) const
{
return (cast()this).opCmp!(VariantN)(cast()rhs);
}

/**
* Ordering comparison used by the "<", "<=", ">", and ">="
* operators. In case comparison is not sensible between the held
Expand Down

0 comments on commit c85bb0f

Please sign in to comment.