xo-unit: stop hardwiring representation for a few qty builders
This commit is contained in:
parent
633c037ba3
commit
f3e75cc634
2 changed files with 11 additions and 6 deletions
|
|
@ -313,8 +313,13 @@ namespace xo {
|
|||
inline constexpr auto nanoseconds(double x) { return quantity<double, std::int64_t, nu::nanosecond>(x); }
|
||||
inline constexpr auto microseconds(double x) { return quantity<double, std::int64_t, nu::microsecond>(x); }
|
||||
inline constexpr auto milliseconds(double x) { return quantity<double, std::int64_t, nu::millisecond>(x); }
|
||||
inline constexpr auto seconds(double x) { return quantity<double, std::int64_t, nu::second>(x); }
|
||||
inline constexpr auto minutes(double x) { return quantity<double, std::int64_t, nu::minute>(x); }
|
||||
|
||||
template <typename Repr>
|
||||
inline constexpr auto seconds(Repr x) { return quantity<Repr, std::int64_t, nu::second>(x); }
|
||||
|
||||
template <typename Repr>
|
||||
inline constexpr auto minutes(Repr x) { return quantity<Repr, std::int64_t, nu::minute>(x); }
|
||||
|
||||
inline constexpr auto hours(double x) { return quantity<double, std::int64_t, nu::hour>(x); }
|
||||
inline constexpr auto days(double x) { return quantity<double, std::int64_t, nu::day>(x); }
|
||||
inline constexpr auto weeks(double x) { return quantity<double, std::int64_t, nu::week>(x); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue