refactor: most std::remove_const_t removed and some replaced with the GCC-specific workaround

This commit is contained in:
Mateusz Pusz
2024-06-01 09:12:16 +02:00
parent ec287664ee
commit 1ea2df9209
22 changed files with 166 additions and 164 deletions

View File

@@ -99,7 +99,7 @@ static_assert(is_of_type<kind_of<length>[metre], metre_>);
static_assert(
is_of_type<(length / time)[metre / second],
reference<std::remove_const_t<decltype(length / time)>, std::remove_const_t<decltype(metre / second)>>>);
reference<decltype(length / time), decltype(metre / second)>>);
static_assert(is_of_type<(kind_of<length> / kind_of<time>)[metre / second], derived_unit<metre_, per<second_>>>);
// Unit as a reference