Commit b476262
authored
Avoid op= on struct rvalue (#476)
Use `opOpAssign` directly instead, which is in the spec:
> an instance method can still be called on an rvalue struct instance,
even if the method is not const
https://dlang.org/spec/struct.html#member-functions1 parent ecde2eb commit b476262
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
966 | | - | |
| 966 | + | |
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
1063 | | - | |
| 1063 | + | |
| 1064 | + | |
1064 | 1065 | | |
1065 | 1066 | | |
0 commit comments