refactor: UNITS_UDLS renamed to UNITS_LITERALS

Also now the existence of the preprocessor flag is enough to trigger the feature (`#ifdef` instead of `#if`)
This commit is contained in:
Mateusz Pusz committed 2021-04-06 13:33:27 +02:00
1 parent a954f5d924
commit c3659dbb47
92 files changed
+181 -185

No files matched your search

@@ -62,7 +62,7 @@ struct dim_absorbed_dose : isq::dim_absorbed_dose<dim_absorbed_dose, gray, dim_e
template<UnitOf<dim_absorbed_dose> U, Representation Rep = double>
using absorbed_dose = quantity<dim_absorbed_dose, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -152,7 +152,7 @@ constexpr auto operator"" _q_YGy(long double l) { return absorbed_dose<yottagray
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -39,7 +39,7 @@ struct dim_acceleration : isq::dim_acceleration<dim_acceleration, metre_per_seco
template<UnitOf<dim_acceleration> U, Representation Rep = double>
using acceleration = quantity<dim_acceleration, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -49,6 +49,6 @@ constexpr auto operator"" _q_m_per_s2(long double l) { return acceleration<metre
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -41,7 +41,7 @@ struct dim_amount_of_substance : isq::dim_amount_of_substance<mole> {};
template<UnitOf<dim_amount_of_substance> U, Representation Rep = double>
using amount_of_substance = quantity<dim_amount_of_substance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -51,7 +51,7 @@ constexpr auto operator"" _q_mol(long double l) { return amount_of_substance<mol
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -41,7 +41,7 @@ struct dim_angular_velocity : isq::dim_angular_velocity<dim_angular_velocity, ra
template<UnitOf<dim_angular_velocity> U, Representation Rep = double>
using angular_velocity = quantity<dim_angular_velocity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -51,6 +51,6 @@ constexpr auto operator"" _q_rad_per_s(long double l) { return angular_velocity<
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
+2 -2
View File
@@ -63,7 +63,7 @@ struct hectare : alias_unit<square_hectometre, "ha", no_prefix> {};
template<UnitOf<dim_area> U, Representation Rep = double>
using area = quantity<dim_area, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -157,7 +157,7 @@ constexpr auto operator"" _q_ha(long double l) { return area<hectare, long doubl
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -63,7 +63,7 @@ struct dim_capacitance : isq::dim_capacitance<dim_capacitance, farad, dim_electr
template<UnitOf<dim_capacitance> U, Representation Rep = double>
using capacitance = quantity<dim_capacitance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -153,7 +153,7 @@ constexpr auto operator"" _q_YF(long double l) { return capacitance<yottafarad,
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -65,7 +65,7 @@ struct dim_catalytic_activity : isq::dim_catalytic_activity<dim_catalytic_activi
template<UnitOf<dim_catalytic_activity> U, Representation Rep = double>
using catalytic_activity = quantity<dim_catalytic_activity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -159,7 +159,7 @@ constexpr auto operator"" _q_U(long double l) { return catalytic_activity<enzyme
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -47,7 +47,7 @@ using charge_density = quantity<dim_charge_density, U, Rep>;
template<UnitOf<dim_surface_charge_density> U, Representation Rep = double>
using surface_charge_density = quantity<dim_surface_charge_density, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -61,6 +61,6 @@ constexpr auto operator"" _q_C_per_m2(long double l) { return surface_charge_den
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -40,7 +40,7 @@ struct dim_concentration : isq::dim_concentration<dim_concentration, mol_per_met
template<UnitOf<dim_concentration> U, Representation Rep = double>
using concentration = quantity<dim_concentration, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,7 +50,7 @@ constexpr auto operator"" _q_mol_per_m3(long double l) { return concentration<mo
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -58,7 +58,7 @@ struct dim_conductance : isq::dim_conductance<dim_conductance, siemens, dim_resi
template<UnitOf<dim_conductance> U, Representation Rep = double>
using conductance = quantity<dim_conductance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -132,7 +132,7 @@ constexpr auto operator"" _q_YS(long double l) { return conductance<yottasiemens
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -42,7 +42,7 @@ struct dim_current_density : isq::dim_current_density<dim_current_density, amper
template<UnitOf<dim_current_density> U, Representation Rep = double>
using current_density = quantity<dim_current_density, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -52,6 +52,6 @@ constexpr auto operator"" _q_A_per_m2(long double l) { return current_density<am
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -42,7 +42,7 @@ struct dim_density : isq::dim_density<dim_density, kilogram_per_metre_cub, dim_m
template<UnitOf<dim_density> U, Representation Rep = double>
using density = quantity<dim_density, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -52,6 +52,6 @@ constexpr auto operator"" _q_kg_per_m3(long double l) { return density<kilogram_
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -40,7 +40,7 @@ struct dim_dynamic_viscosity : isq::dim_dynamic_viscosity<dim_dynamic_viscosity,
template<UnitOf<dim_dynamic_viscosity> U, Representation Rep = double>
using dynamic_viscosity = quantity<dim_dynamic_viscosity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,7 +50,7 @@ constexpr auto operator"" _q_Pa_s(long double l) { return dynamic_viscosity<pasc
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -42,7 +42,7 @@ struct dim_electric_charge : isq::dim_electric_charge<dim_electric_charge, coulo
template<UnitOf<dim_electric_charge> U, Representation Rep = double>
using electric_charge = quantity<dim_electric_charge, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -52,7 +52,7 @@ constexpr auto operator"" _q_C(long double l) { return electric_charge<coulomb,
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -61,7 +61,7 @@ struct dim_electric_current : isq::dim_electric_current<ampere> {};
template<UnitOf<dim_electric_current> U, Representation Rep = double>
using electric_current = quantity<dim_electric_current, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -151,7 +151,7 @@ constexpr auto operator"" _q_YA(long double l) { return electric_current<yottaam
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -39,7 +39,7 @@ struct dim_electric_field_strength : isq::dim_electric_field_strength<dim_electr
template<UnitOf<dim_electric_field_strength> U, Representation Rep = double>
using electric_field_strength = quantity<dim_electric_field_strength, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -49,6 +49,6 @@ constexpr auto operator"" _q_V_per_m(long double l) { return electric_field_stre
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
+2 -2
View File
@@ -61,7 +61,7 @@ struct dim_energy : isq::dim_energy<dim_energy, joule, dim_force, dim_length> {}
template<UnitOf<dim_energy> U, Representation Rep = double>
using energy = quantity<dim_energy, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -143,7 +143,7 @@ constexpr auto operator"" _q_GeV(long double l) { return energy<gigaelectronvolt
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -40,7 +40,7 @@ struct dim_energy_density : isq::dim_energy_density<dim_energy_density, joule_pe
template<UnitOf<dim_energy_density> U, Representation Rep = double>
using energy_density = quantity<dim_energy_density, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,6 +50,6 @@ constexpr auto operator"" _q_J_per_m3(long double l) { return energy_density<jou
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
+2 -2
View File
@@ -63,7 +63,7 @@ struct dim_force : isq::dim_force<dim_force, newton, dim_mass, dim_acceleration>
template<UnitOf<dim_force> U, Representation Rep = double>
using force = quantity<dim_force, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -153,7 +153,7 @@ constexpr auto operator"" _q_YN(long double l) { return force<yottanewton, long
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -57,7 +57,7 @@ struct dim_frequency : isq::dim_frequency<dim_frequency, hertz, dim_time> {};
template<UnitOf<dim_frequency> U, Representation Rep = double>
using frequency = quantity<dim_frequency, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -131,7 +131,7 @@ constexpr auto operator"" _q_YHz(long double l) { return frequency<yottahertz, l
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -53,7 +53,7 @@ using specific_heat_capacity = quantity<dim_specific_heat_capacity, U, Rep>;
template<UnitOf<dim_molar_heat_capacity> U, Representation Rep = double>
using molar_heat_capacity = quantity<dim_molar_heat_capacity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -71,7 +71,7 @@ constexpr auto operator"" _q_J_per_mol_K(long double l) { return molar_heat_capa
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -59,7 +59,7 @@ struct dim_inductance : isq::dim_inductance<dim_inductance, henry, dim_magnetic_
template<UnitOf<dim_inductance> U, Representation Rep = double>
using inductance = quantity<dim_inductance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -133,7 +133,7 @@ constexpr auto operator"" _q_YH(long double l) { return inductance<yottahenry, l
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -63,7 +63,7 @@ struct dim_length : isq::dim_length<metre> {};
template<UnitOf<dim_length> U, Representation Rep = double>
using length = quantity<dim_length, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -157,7 +157,7 @@ constexpr auto operator"" _q_au(long double l) { return length<astronomical_unit
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -40,7 +40,7 @@ struct dim_luminance : isq::dim_luminance<dim_luminance, candela_per_metre_sq, d
template<UnitOf<dim_luminance> U, Representation Rep = double>
using luminance = quantity<dim_luminance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,7 +50,7 @@ constexpr auto operator"" _q_cd_per_m2(long double l) { return luminance<candela
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -61,7 +61,7 @@ struct dim_luminous_intensity : isq::dim_luminous_intensity<candela> {};
template<UnitOf<dim_luminous_intensity> U, Representation Rep = double>
using luminous_intensity = quantity<dim_luminous_intensity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -151,7 +151,7 @@ constexpr auto operator"" _q_Ycd(long double l) { return luminous_intensity<yott
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -59,7 +59,7 @@ struct dim_magnetic_flux : isq::dim_magnetic_flux<dim_magnetic_flux, weber, dim_
template<UnitOf<dim_magnetic_flux> U, Representation Rep = double>
using magnetic_flux = quantity<dim_magnetic_flux, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -133,7 +133,7 @@ constexpr auto operator"" _q_YWb(long double l) { return magnetic_flux<yottawebe
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -63,7 +63,7 @@ struct dim_magnetic_induction : isq::dim_magnetic_induction<dim_magnetic_inducti
template<UnitOf<dim_magnetic_induction> U, Representation Rep = double>
using magnetic_induction = quantity<dim_magnetic_induction, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -141,7 +141,7 @@ constexpr auto operator"" _q_G(long double l) { return magnetic_induction<gauss,
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -85,7 +85,7 @@ struct dim_mass : isq::dim_mass<kilogram> {};
template<UnitOf<dim_mass> U, Representation Rep = double>
using mass = quantity<dim_mass, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -263,7 +263,7 @@ constexpr auto operator"" _q_Da(long double l) { return mass<dalton, long double
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -42,7 +42,7 @@ struct dim_molar_energy : isq::dim_molar_energy<dim_molar_energy, joule_per_mole
template<UnitOf<dim_molar_energy> U, Representation Rep = double>
using molar_energy = quantity<dim_molar_energy, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -52,6 +52,6 @@ constexpr auto operator"" _q_J_per_mol(long double l) { return molar_energy<joul
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -40,7 +40,7 @@ struct dim_momentum : isq::dim_momentum<dim_momentum, kilogram_metre_per_second,
template<UnitOf<dim_momentum> U, Representation Rep = double>
using momentum = quantity<dim_momentum, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,6 +50,6 @@ constexpr auto operator"" _q_kg_m_per_s(long double l) { return momentum<kilogra
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -41,7 +41,7 @@ struct dim_permeability : isq::dim_permeability<dim_permeability, henry_per_metr
template<UnitOf<dim_permeability> U, Representation Rep = double>
using permeability = quantity<dim_permeability, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -51,7 +51,7 @@ constexpr auto operator"" _q_H_per_m(long double l) { return permeability<henry_
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -41,7 +41,7 @@ struct dim_permittivity : isq::dim_permittivity<dim_permittivity, farad_per_metr
template<UnitOf<dim_permittivity> U, Representation Rep = double>
using permittivity = quantity<dim_permittivity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -51,7 +51,7 @@ constexpr auto operator"" _q_F_per_m(long double l) { return permittivity<farad_
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
+2 -2
View File
@@ -58,7 +58,7 @@ struct dim_power : isq::dim_power<dim_power, watt, dim_energy, dim_time> {};
template<UnitOf<dim_power> U, Representation Rep = double>
using power = quantity<dim_power, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -132,7 +132,7 @@ constexpr auto operator"" _q_YW(long double l) { return power<yottawatt, long do
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -63,7 +63,7 @@ struct dim_pressure : isq::dim_pressure<dim_pressure, pascal, dim_force, dim_are
template<UnitOf<dim_pressure> U, Representation Rep = double>
using pressure = quantity<dim_pressure, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -153,7 +153,7 @@ constexpr auto operator"" _q_YPa(long double l) { return pressure<yottapascal, l
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -61,7 +61,7 @@ struct dim_radioactivity : isq::dim_radioactivity<dim_radioactivity, becquerel,
template<UnitOf<dim_radioactivity> U, Representation Rep = double>
using radioactivity = quantity<dim_radioactivity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -151,7 +151,7 @@ constexpr auto operator"" _q_YBq(long double l) { return radioactivity<yottabecq
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
@@ -59,7 +59,7 @@ struct dim_resistance : isq::dim_resistance<dim_resistance, ohm, dim_voltage, di
template<UnitOf<dim_resistance> U, Representation Rep = double>
using resistance = quantity<dim_resistance, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -133,7 +133,7 @@ constexpr auto operator"" _q_YR(long double l) { return resistance<yottaohm, lon
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -42,7 +42,7 @@ struct kilometre_per_hour : deduced_unit<kilometre_per_hour, dim_speed, kilometr
template<UnitOf<dim_speed> U, Representation Rep = double>
using speed = quantity<dim_speed, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -56,6 +56,6 @@ constexpr auto operator"" _q_km_per_h(long double l) { return speed<kilometre_pe
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -40,7 +40,7 @@ struct dim_surface_tension : isq::dim_surface_tension<dim_surface_tension, newto
template<UnitOf<dim_surface_tension> U, Representation Rep = double>
using surface_tension = quantity<dim_surface_tension, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,6 +50,6 @@ constexpr auto operator"" _q_N_per_m(long double l) { return surface_tension<new
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -41,7 +41,7 @@ struct dim_thermal_conductivity : isq::dim_thermal_conductivity<dim_thermal_cond
template<UnitOf<dim_thermal_conductivity> U, Representation Rep = double>
using thermal_conductivity = quantity<dim_thermal_conductivity, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -51,6 +51,6 @@ constexpr auto operator"" _q_W_per_m_K(long double l) { return thermal_conductiv
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -40,7 +40,7 @@ struct dim_thermodynamic_temperature : isq::dim_thermodynamic_temperature<kelvin
template<UnitOf<dim_thermodynamic_temperature> U, Representation Rep = double>
using thermodynamic_temperature = quantity<dim_thermodynamic_temperature, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -50,7 +50,7 @@ constexpr auto operator"" _q_K(long double l) { return thermodynamic_temperature
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -52,7 +52,7 @@ struct dim_time : isq::dim_time<second> {};
template<UnitOf<dim_time> U, Representation Rep = double>
using time = quantity<dim_time, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -106,7 +106,7 @@ constexpr auto operator"" _q_d(long double l) { return time<day, long double>(l)
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -42,7 +42,7 @@ struct dim_torque : isq::dim_torque<dim_torque, newton_metre_per_radian, dim_for
template<UnitOf<dim_torque> U, Representation Rep = double>
using torque = quantity<dim_torque, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -52,6 +52,6 @@ constexpr auto operator"" _q_Nm_per_rad(long double l) { return torque<newton_me
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
} // namespace units::isq::si
@@ -63,7 +63,7 @@ struct dim_voltage : isq::dim_voltage<dim_voltage, volt, dim_power, dim_electric
template<UnitOf<dim_voltage> U, Representation Rep = double>
using voltage = quantity<dim_voltage, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -153,7 +153,7 @@ constexpr auto operator"" _q_YV(long double l) { return voltage<yottavolt, long
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {
+2 -2
View File
@@ -83,7 +83,7 @@ struct yottalitre : prefixed_unit<yottalitre, yotta, litre> {};
template<UnitOf<dim_volume> U, Representation Rep = double>
using volume = quantity<dim_volume, U, Rep>;
#if UNITS_UDLS
#ifdef UNITS_LITERALS
inline namespace literals {
@@ -257,7 +257,7 @@ constexpr auto operator"" _q_Yl(long double l) { return volume<yottalitre, long
} // namespace literals
#endif // UNITS_UDLS
#endif // UNITS_LITERALS
namespace references {