derived_unit helper added

This commit is contained in:
Mateusz Pusz committed 2019-04-11 13:36:06 +01:00
1 parent e12fb2f52a
commit 709e1190af
5 files changed
+84 -17

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ namespace units {
struct millihertz : unit<dimension_frequency, std::milli> {};
template<> struct upcasting_traits<upcast_from<millihertz>> : upcast_to<millihertz> {};
struct hertz : unit<dimension_frequency, std::ratio<1>> {};
struct hertz : derived_unit<dimension_frequency, second> {};
template<> struct upcasting_traits<upcast_from<hertz>> : upcast_to<hertz> {};
struct kilohertz : unit<dimension_frequency, std::kilo> {};