feat: interconvertible(QuantitySpec, QuantitySpec) added
This commit is contained in:
1 parent
b33013ca43
commit
31a5c76672
1 file changed
+6
@@ -1401,6 +1401,12 @@ template<QuantitySpec From, QuantitySpec To>
|
||||
return detail::convertible_impl(from, to) >= detail::specs_convertible_result::cast;
|
||||
}
|
||||
|
||||
template<QuantitySpec QS1, QuantitySpec QS2>
|
||||
[[nodiscard]] consteval bool interconvertible(QS1 qs1, QS2 qs2)
|
||||
{
|
||||
return implicitly_convertible(qs1, qs2) && implicitly_convertible(qs2, qs1);
|
||||
}
|
||||
|
||||
namespace detail {
|
||||
|
||||
template<QuantitySpec Q>
|
||||
|
||||
Reference in new issue
Block a user