Whitespace cleanup

This commit is contained in:
Mateusz Pusz
2020-01-14 12:23:32 +01:00
parent 1c857868bb
commit 1c4624303e
2 changed files with 5 additions and 5 deletions

View File

@ -92,8 +92,8 @@ struct dim_power : derived_dimension<Child, U, exp<E, 1>, exp<T, -1>> {};
template<typename Child, Unit U, DimensionOf<dim_power> P, DimensionOf<dim_electric_current> C>
struct dim_voltage : derived_dimension<Child, U, exp<P, 1>, exp<C, -1>> {};
template <typename Child,Unit U, DimensionOf<dim_voltage> V, DimensionOf<dim_electric_current> C>
struct dim_resistance : derived_dimension<Child,U, exp<V, 1>, exp<C , -1>> {};
template <typename Child, Unit U, DimensionOf<dim_voltage> V, DimensionOf<dim_electric_current> C>
struct dim_resistance : derived_dimension<Child,U, exp<V, 1>, exp<C, -1>> {};
template<typename Child, Unit U, DimensionOf<dim_time> T, DimensionOf<dim_electric_current> C>
struct dim_electric_charge : derived_dimension<Child, U, exp<T, 1>, exp<C, 1>> {};

View File

@ -42,15 +42,15 @@ using resistance = quantity<dim_resistance, U, Rep>;
inline namespace literals {
//R
// R
constexpr auto operator""_R(unsigned long long l) { return resistance<ohm, std::int64_t>(l); }
constexpr auto operator""_R(long double l) { return resistance<ohm, long double>(l); }
//mR
// mR
constexpr auto operator""mR(unsigned long long l) { return resistance<milliohm, std::int64_t>(l); }
constexpr auto operator""mR(long double l) { return resistance<milliohm, long double>(l); }
//kR
// kR
constexpr auto operator""kR(unsigned long long l) { return resistance<kiloohm, std::int64_t>(l); }
constexpr auto operator""kR(long double l) { return resistance<kiloohm, long double>(l); }