coherent_derived_unit and custom prefixes support added
This commit is contained in:
1 parent
9a9abca81d
commit
3e30c779a6
29 files changed
+261
-115
No files matched your search
@@ -33,7 +33,7 @@ namespace units {
|
||||
concept Length = QuantityOf<T, length>;
|
||||
|
||||
// SI units
|
||||
struct metre : derived_unit<metre, decltype("m"_fs), length> {};
|
||||
struct metre : coherent_derived_unit<metre, decltype("m"_fs), length, si_prefix> {};
|
||||
struct millimetre : derived_unit<millimetre, decltype("mm"_fs), milli<metre>> {};
|
||||
struct centimetre : derived_unit<centimetre, decltype("cm"_fs), centi<metre>> {};
|
||||
struct kilometre : derived_unit<kilometre, decltype("km"_fs), kilo<metre>> {};
|
||||
|
||||
Reference in new issue
Block a user