Skip to content

Commit

Permalink
Merge pull request #193 from AndrejMitrovic/FixupOpEquals
Browse files Browse the repository at this point in the history
Fixup of Pull #190
  • Loading branch information
Alex Rønne Petersen committed Nov 9, 2012
2 parents a81586a + bda476b commit a727634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operatoroverloading.dd
Expand Up @@ -333,10 +333,10 @@ struct S {
---

$(V2
$(P Alternatively you can declare a single opEquals function with an $(LINK2 template.html#auto-ref-parameters, auto ref) parameter:)
$(P Alternatively you can declare a single templated opEquals function with an $(LINK2 template.html#auto-ref-parameters, auto ref) parameter:)
---
struct S {
bool opEquals(auto ref S s) { ... } // for l-values and r-values
bool opEquals()(auto ref S s) { ... } // for l-values and r-values
}
---
)
Expand Down

0 comments on commit a727634

Please sign in to comment.