I've found myself frequently wanting at least ONE and ZERO values from num_traits, so I took a shot at implementing them here (this required implementing Mul as well).
I know there was some discussion/hesitation about implementing num_traitshere, but this was so long ago now I'm thinking perhaps the concerns are no longer relevant.
I did put the feature behind a flag and defaulted num_traits to not using std to maintain that aspect of uX.
I've found myself frequently wanting at least ONE and ZERO values from
num_traits
, so I took a shot at implementing them here (this required implementingMul
as well).I know there was some discussion/hesitation about implementing
num_traits
here, but this was so long ago now I'm thinking perhaps the concerns are no longer relevant.I did put the feature behind a flag and defaulted
num_traits
to not usingstd
to maintain that aspect ofuX
.