38template <
class Ratio = std::ratio<1>>
41template <
class ToAcceleration,
class FromAcceleration>
44 return ToAcceleration(from);
49 Acceleration<std::ratio<static_cast<std::intmax_t>(Constants::g * 1e10),
50 static_cast<std::intmax_t
>(1e10)>>;
57 "Not enough precision to represent g in m/s^2");
60constexpr auto operator""_mps2(
long double n)
64constexpr auto operator""_g(
long double n) {
return G(
static_cast<float>(n)); };
66constexpr auto operator""_mps2(
unsigned long long n)
70constexpr auto operator""_g(
unsigned long long n)
72 return G(
static_cast<float>(n));
Acceleration< std::ratio< static_cast< std::intmax_t >(Constants::g *1e10), static_cast< std::intmax_t >(1e10)> > G
ToAcceleration acceleration_cast(FromAcceleration const &from)
Acceleration<> MeterPerSecondSquared
Unit< UnitKind::Acceleration, Ratio > Acceleration
This file includes all the types the logdecoder script will decode.