forked from mpusz/mp-units
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;
|
static constexpr auto coherent_unit = CoU;
|
||||||
|
|
||||||
template<Unit U>
|
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
|
[[nodiscard]] constexpr reference<std::remove_const_t<decltype(dimension)>, U> operator[](U) const
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
|
Reference in New Issue
Block a user