units
units copied to clipboard
std::numeric_limits
std::numeric_limits is for arithmetic types. Even std::chrono provides no specializations for it. It also fails to meet its requirements.
I'm going to support this anyway, but try to better meet the requirements.
Tried on master, numeric_limits doesn't seem to work (i.e. when I ask for std::numeric_limits<seconds_t<float>>::max()
I get 0
)
I made a mistake. It can actually be specialized for program-defined types. I was corrected at https://github.com/ericniebler/range-v3/issues/1516#issuecomment-652673876.