xo-unit: bugfix:fix meter, kilometer units
This commit is contained in:
parent
34214f571d
commit
fcdf0c8dfa
1 changed files with 4 additions and 4 deletions
|
|
@ -270,12 +270,12 @@ namespace xo {
|
|||
};
|
||||
|
||||
using meter = wrap_unit< std::ratio<1>,
|
||||
bpu_node< bpu<dim::time,
|
||||
std::ratio<1>> > >;
|
||||
bpu_node< bpu<dim::distance,
|
||||
std::ratio<1>> > >;
|
||||
|
||||
using kilometer = wrap_unit< std::ratio<1>,
|
||||
bpu_node< bpu<dim::time,
|
||||
std::ratio<1000>> > >;
|
||||
bpu_node< bpu<dim::distance,
|
||||
std::ratio<1000>> > >;
|
||||
template <>
|
||||
struct scaled_native_unit_abbrev<dim::distance, std::ratio<1000>> {
|
||||
static constexpr auto value = stringliteral("km");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue