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.

My struct is defined here: https://github.com/aferust/opencvd/blob/master/source/opencvd/cvcore.d

Reply via email to