Add lowest to floating point limits

This commit is contained in:
BlackMark 2020-04-07 21:01:48 +02:00
parent c6e9534b52
commit ce31ef017f

View File

@ -212,18 +212,21 @@ template <>
struct numeric_limits<float> {
static constexpr float min() { return FLT_MIN; }
static constexpr float max() { return FLT_MAX; }
static constexpr float lowest() { return -FLT_MAX; }
};
template <>
struct numeric_limits<double> {
static constexpr double min() { return DBL_MIN; }
static constexpr double max() { return DBL_MAX; }
static constexpr double lowest() { return -DBL_MAX; }
};
template <>
struct numeric_limits<long double> {
static constexpr long double min() { return LDBL_MIN; }
static constexpr long double max() { return LDBL_MAX; }
static constexpr long double lowest() { return -LDBL_MAX; }
};
// clang-format on