coherent_derived_unit and custom prefixes support added

This commit is contained in:
Mateusz Pusz committed 2019-10-17 10:16:44 +02:00
1 parent 9a9abca81d
commit 3e30c779a6
29 files changed
+261 -115

No files matched your search

+1 -1
View File
@@ -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>> {};