My struct is defined here: https://github.com/aferust/opencvd/blob/master/source/opencvd/cvcore.d
How to do operator overloading for <, >, <=, >=, !=, and == between struct and int?
Ferhat Kurtulmuş via Digitalmars-d-learn Sun, 21 Apr 2019 11:10:51 -0700
I am writing an opencv binding and need something like: Mat m =
another_mat > 5;
Docs does not cover this sitiuation:
https://dlang.org/spec/operatoroverloading.html#compare
opBinary does not support those operators, and Section
"Overloading <, <=, >, and >=" describes overloaded operators
returning only int values.
- How to do operator overloading ... Ferhat Kurtulmuş via Digitalmars-d-learn
- Re: How to do operator ove... Adam D. Ruppe via Digitalmars-d-learn
- Re: How to do operator... Ferhat Kurtulmuş via Digitalmars-d-learn
