units icon indicating copy to clipboard operation
units copied to clipboard

std::numeric_limits

Open nholthaus opened this issue 6 years ago • 3 comments

std::numeric_limits is for arithmetic types. Even std::chrono provides no specializations for it. It also fails to meet its requirements.

nholthaus avatar May 10 '18 23:05 nholthaus

I'm going to support this anyway, but try to better meet the requirements.

nholthaus avatar May 11 '18 00:05 nholthaus

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)

vl-01 avatar Jan 16 '19 19:01 vl-01

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.

JohelEGP avatar Jul 01 '20 22:07 JohelEGP