mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-10 07:34:28 +02:00
feat: convertibility check added for the target unit in the system_reference
This commit is contained in:
@@ -155,8 +155,7 @@ struct system_reference {
|
||||
static constexpr auto coherent_unit = CoU;
|
||||
|
||||
template<Unit U>
|
||||
// TODO enable that
|
||||
// requires(convertible(coherent_unit, U{}))
|
||||
requires(convertible(coherent_unit, U{}))
|
||||
[[nodiscard]] constexpr reference<std::remove_const_t<decltype(dimension)>, U> operator[](U) const
|
||||
{
|
||||
return {};
|
||||
|
Reference in New Issue
Block a user