mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-02 11:54:27 +02:00
fix: std::numeric_limits
usage fixed
This commit is contained in:
@@ -97,7 +97,7 @@ struct representation_values {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static constexpr Rep min() noexcept
|
static constexpr Rep min() noexcept
|
||||||
requires requires {
|
requires std::numeric_limits<Rep>::is_specialized && requires {
|
||||||
{ std::numeric_limits<Rep>::lowest() } -> std::same_as<Rep>;
|
{ std::numeric_limits<Rep>::lowest() } -> std::same_as<Rep>;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -105,7 +105,7 @@ struct representation_values {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static constexpr Rep max() noexcept
|
static constexpr Rep max() noexcept
|
||||||
requires requires {
|
requires std::numeric_limits<Rep>::is_specialized && requires {
|
||||||
{ std::numeric_limits<Rep>::max() } -> std::same_as<Rep>;
|
{ std::numeric_limits<Rep>::max() } -> std::same_as<Rep>;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@@ -696,7 +696,7 @@ template<mp_units::Quantity Q, mp_units::RepresentationOf<Q::quantity_spec> Valu
|
|||||||
struct std::common_type<Value, Q> : std::common_type<Q, Value> {};
|
struct std::common_type<Value, Q> : std::common_type<Q, Value> {};
|
||||||
|
|
||||||
template<auto R, typename Rep>
|
template<auto R, typename Rep>
|
||||||
requires requires { typename std::numeric_limits<Rep>; }
|
requires std::numeric_limits<Rep>::is_specialized
|
||||||
class std::numeric_limits<mp_units::quantity<R, Rep>> : public std::numeric_limits<Rep> {
|
class std::numeric_limits<mp_units::quantity<R, Rep>> : public std::numeric_limits<Rep> {
|
||||||
public:
|
public:
|
||||||
static constexpr mp_units::quantity<R, Rep> min() noexcept
|
static constexpr mp_units::quantity<R, Rep> min() noexcept
|
||||||
|
@@ -564,7 +564,7 @@ explicit(quantity_point_like_traits<QP>::explicit_import) quantity_point(QP)
|
|||||||
} // namespace mp_units
|
} // namespace mp_units
|
||||||
|
|
||||||
template<auto R, auto PO, typename Rep>
|
template<auto R, auto PO, typename Rep>
|
||||||
requires requires { typename std::numeric_limits<Rep>; }
|
requires std::numeric_limits<Rep>::is_specialized
|
||||||
class std::numeric_limits<mp_units::quantity_point<R, PO, Rep>> : public std::numeric_limits<Rep> {
|
class std::numeric_limits<mp_units::quantity_point<R, PO, Rep>> : public std::numeric_limits<Rep> {
|
||||||
public:
|
public:
|
||||||
static constexpr mp_units::quantity_point<R, PO, Rep> min() noexcept
|
static constexpr mp_units::quantity_point<R, PO, Rep> min() noexcept
|
||||||
|
Reference in New Issue
Block a user