forked from mpusz/mp-units
refactor: most std::remove_const_t removed and some replaced with the GCC-specific workaround
This commit is contained in:
@@ -42,14 +42,14 @@ template<PrefixableUnit U> struct yobi_ : prefixed_unit<"Yi", mag_power<2, 80>,
|
||||
|
||||
MP_UNITS_EXPORT_BEGIN
|
||||
|
||||
template<PrefixableUnit auto U> inline constexpr kibi_<std::remove_const_t<decltype(U)>> kibi;
|
||||
template<PrefixableUnit auto U> inline constexpr mebi_<std::remove_const_t<decltype(U)>> mebi;
|
||||
template<PrefixableUnit auto U> inline constexpr gibi_<std::remove_const_t<decltype(U)>> gibi;
|
||||
template<PrefixableUnit auto U> inline constexpr tebi_<std::remove_const_t<decltype(U)>> tebi;
|
||||
template<PrefixableUnit auto U> inline constexpr pebi_<std::remove_const_t<decltype(U)>> pebi;
|
||||
template<PrefixableUnit auto U> inline constexpr exbi_<std::remove_const_t<decltype(U)>> exbi;
|
||||
template<PrefixableUnit auto U> inline constexpr zebi_<std::remove_const_t<decltype(U)>> zebi;
|
||||
template<PrefixableUnit auto U> inline constexpr yobi_<std::remove_const_t<decltype(U)>> yobi;
|
||||
template<PrefixableUnit auto U> inline constexpr kibi_<decltype(U)> kibi;
|
||||
template<PrefixableUnit auto U> inline constexpr mebi_<decltype(U)> mebi;
|
||||
template<PrefixableUnit auto U> inline constexpr gibi_<decltype(U)> gibi;
|
||||
template<PrefixableUnit auto U> inline constexpr tebi_<decltype(U)> tebi;
|
||||
template<PrefixableUnit auto U> inline constexpr pebi_<decltype(U)> pebi;
|
||||
template<PrefixableUnit auto U> inline constexpr exbi_<decltype(U)> exbi;
|
||||
template<PrefixableUnit auto U> inline constexpr zebi_<decltype(U)> zebi;
|
||||
template<PrefixableUnit auto U> inline constexpr yobi_<decltype(U)> yobi;
|
||||
// clang-format on
|
||||
|
||||
MP_UNITS_EXPORT_END
|
||||
|
||||
@@ -58,30 +58,30 @@ template<PrefixableUnit U> struct quetta_ : prefixed_unit<"Q", mag_power<10, 30>
|
||||
|
||||
MP_UNITS_EXPORT_BEGIN
|
||||
|
||||
template<PrefixableUnit auto U> inline constexpr quecto_<std::remove_const_t<decltype(U)>> quecto;
|
||||
template<PrefixableUnit auto U> inline constexpr ronto_<std::remove_const_t<decltype(U)>> ronto;
|
||||
template<PrefixableUnit auto U> inline constexpr yocto_<std::remove_const_t<decltype(U)>> yocto;
|
||||
template<PrefixableUnit auto U> inline constexpr zepto_<std::remove_const_t<decltype(U)>> zepto;
|
||||
template<PrefixableUnit auto U> inline constexpr atto_<std::remove_const_t<decltype(U)>> atto;
|
||||
template<PrefixableUnit auto U> inline constexpr femto_<std::remove_const_t<decltype(U)>> femto;
|
||||
template<PrefixableUnit auto U> inline constexpr pico_<std::remove_const_t<decltype(U)>> pico;
|
||||
template<PrefixableUnit auto U> inline constexpr nano_<std::remove_const_t<decltype(U)>> nano;
|
||||
template<PrefixableUnit auto U> inline constexpr micro_<std::remove_const_t<decltype(U)>> micro;
|
||||
template<PrefixableUnit auto U> inline constexpr milli_<std::remove_const_t<decltype(U)>> milli;
|
||||
template<PrefixableUnit auto U> inline constexpr centi_<std::remove_const_t<decltype(U)>> centi;
|
||||
template<PrefixableUnit auto U> inline constexpr deci_<std::remove_const_t<decltype(U)>> deci;
|
||||
template<PrefixableUnit auto U> inline constexpr deca_<std::remove_const_t<decltype(U)>> deca;
|
||||
template<PrefixableUnit auto U> inline constexpr hecto_<std::remove_const_t<decltype(U)>> hecto;
|
||||
template<PrefixableUnit auto U> inline constexpr kilo_<std::remove_const_t<decltype(U)>> kilo;
|
||||
template<PrefixableUnit auto U> inline constexpr mega_<std::remove_const_t<decltype(U)>> mega;
|
||||
template<PrefixableUnit auto U> inline constexpr giga_<std::remove_const_t<decltype(U)>> giga;
|
||||
template<PrefixableUnit auto U> inline constexpr tera_<std::remove_const_t<decltype(U)>> tera;
|
||||
template<PrefixableUnit auto U> inline constexpr peta_<std::remove_const_t<decltype(U)>> peta;
|
||||
template<PrefixableUnit auto U> inline constexpr exa_<std::remove_const_t<decltype(U)>> exa;
|
||||
template<PrefixableUnit auto U> inline constexpr zetta_<std::remove_const_t<decltype(U)>> zetta;
|
||||
template<PrefixableUnit auto U> inline constexpr yotta_<std::remove_const_t<decltype(U)>> yotta;
|
||||
template<PrefixableUnit auto U> inline constexpr ronna_<std::remove_const_t<decltype(U)>> ronna;
|
||||
template<PrefixableUnit auto U> inline constexpr quetta_<std::remove_const_t<decltype(U)>> quetta;
|
||||
template<PrefixableUnit auto U> inline constexpr quecto_<decltype(U)> quecto;
|
||||
template<PrefixableUnit auto U> inline constexpr ronto_<decltype(U)> ronto;
|
||||
template<PrefixableUnit auto U> inline constexpr yocto_<decltype(U)> yocto;
|
||||
template<PrefixableUnit auto U> inline constexpr zepto_<decltype(U)> zepto;
|
||||
template<PrefixableUnit auto U> inline constexpr atto_<decltype(U)> atto;
|
||||
template<PrefixableUnit auto U> inline constexpr femto_<decltype(U)> femto;
|
||||
template<PrefixableUnit auto U> inline constexpr pico_<decltype(U)> pico;
|
||||
template<PrefixableUnit auto U> inline constexpr nano_<decltype(U)> nano;
|
||||
template<PrefixableUnit auto U> inline constexpr micro_<decltype(U)> micro;
|
||||
template<PrefixableUnit auto U> inline constexpr milli_<decltype(U)> milli;
|
||||
template<PrefixableUnit auto U> inline constexpr centi_<decltype(U)> centi;
|
||||
template<PrefixableUnit auto U> inline constexpr deci_<decltype(U)> deci;
|
||||
template<PrefixableUnit auto U> inline constexpr deca_<decltype(U)> deca;
|
||||
template<PrefixableUnit auto U> inline constexpr hecto_<decltype(U)> hecto;
|
||||
template<PrefixableUnit auto U> inline constexpr kilo_<decltype(U)> kilo;
|
||||
template<PrefixableUnit auto U> inline constexpr mega_<decltype(U)> mega;
|
||||
template<PrefixableUnit auto U> inline constexpr giga_<decltype(U)> giga;
|
||||
template<PrefixableUnit auto U> inline constexpr tera_<decltype(U)> tera;
|
||||
template<PrefixableUnit auto U> inline constexpr peta_<decltype(U)> peta;
|
||||
template<PrefixableUnit auto U> inline constexpr exa_<decltype(U)> exa;
|
||||
template<PrefixableUnit auto U> inline constexpr zetta_<decltype(U)> zetta;
|
||||
template<PrefixableUnit auto U> inline constexpr yotta_<decltype(U)> yotta;
|
||||
template<PrefixableUnit auto U> inline constexpr ronna_<decltype(U)> ronna;
|
||||
template<PrefixableUnit auto U> inline constexpr quetta_<decltype(U)> quetta;
|
||||
// clang-format on
|
||||
|
||||
MP_UNITS_EXPORT_END
|
||||
|
||||
Reference in New Issue
Block a user