fix: quantity.in(U) fixed to clone a reference from the source type
This commit is contained in:
1 parent
f0e1e202db
commit
b6bc9434d0
2 files changed
+6
-2
No files matched your search
@@ -163,8 +163,8 @@ public:
|
||||
}
|
||||
|
||||
template<Unit U>
|
||||
requires detail::QuantityConvertibleTo<quantity, quantity<::mp_units::reference<quantity_spec, U{}>{}, Rep>>
|
||||
[[nodiscard]] constexpr quantity<::mp_units::reference<quantity_spec, U{}>{}, Rep> in(U) const
|
||||
requires detail::QuantityConvertibleTo<quantity, quantity<quantity_spec[U{}], Rep>>
|
||||
[[nodiscard]] constexpr quantity<quantity_spec[U{}], Rep> in(U) const
|
||||
{
|
||||
return quantity<quantity_spec[U{}], Rep>{*this};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user