feat: convertibility check added for the target unit in the system_reference

This commit is contained in:
Mateusz Pusz
2022-10-19 13:16:10 +02:00
parent ec1dace1f9
commit 8793aeec23

View File

@@ -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 {};