Small constraints cleanup

This commit is contained in:
Mateusz Pusz
2019-01-14 19:38:51 +01:00
parent c997208fa7
commit 925239cb31

View File

@ -131,7 +131,7 @@ namespace units {
quantity(const quantity&) = default;
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)}
{
}