feat: convertibility check added for the target unit in the system_reference
This commit is contained in:
1 parent
ec1dace1f9
commit
8793aeec23
1 file changed
+1
-2
@@ -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