mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 10:27:16 +02:00
Small constraints cleanup
This commit is contained in:
@ -131,7 +131,7 @@ namespace units {
|
|||||||
quantity(const quantity&) = default;
|
quantity(const quantity&) = default;
|
||||||
|
|
||||||
template<ConvertibleTo<rep> Rep2>
|
template<ConvertibleTo<rep> Rep2>
|
||||||
requires (treat_as_floating_point<rep> || !treat_as_floating_point<Rep2>)
|
requires treat_as_floating_point<rep> || (!treat_as_floating_point<Rep2>)
|
||||||
constexpr explicit quantity(const Rep2& r) : value_{static_cast<rep>(r)}
|
constexpr explicit quantity(const Rep2& r) : value_{static_cast<rep>(r)}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user