From a63b5ab1113f007ccc4f08d772f9f8e63eec1eb3 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 9 May 2019 19:54:18 -0600 Subject: [PATCH] std::ratio<1> set as a default for unit --- src/include/units/current.h | 2 +- src/include/units/length.h | 2 +- src/include/units/luminous_intensity.h | 2 +- src/include/units/substance.h | 2 +- src/include/units/temperature.h | 2 +- src/include/units/time.h | 2 +- src/include/units/unit.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/include/units/current.h b/src/include/units/current.h index e6738d9d..eb989fe3 100644 --- a/src/include/units/current.h +++ b/src/include/units/current.h @@ -36,7 +36,7 @@ namespace units { template using current = quantity; - struct ampere : unit> {}; + struct ampere : unit {}; template<> struct upcasting_traits> : upcast_to {}; inline namespace literals { diff --git a/src/include/units/length.h b/src/include/units/length.h index 880fca88..c9c90a2a 100644 --- a/src/include/units/length.h +++ b/src/include/units/length.h @@ -37,7 +37,7 @@ namespace units { using length = quantity; // SI units - struct meter : unit> {}; + struct meter : unit {}; template<> struct upcasting_traits> : upcast_to {}; struct millimeter : milli {}; diff --git a/src/include/units/luminous_intensity.h b/src/include/units/luminous_intensity.h index 3838bb8b..3fe05d04 100644 --- a/src/include/units/luminous_intensity.h +++ b/src/include/units/luminous_intensity.h @@ -36,7 +36,7 @@ namespace units { template using luminous_intensity = quantity; - struct candela : unit> {}; + struct candela : unit {}; template<> struct upcasting_traits> : upcast_to {}; inline namespace literals { diff --git a/src/include/units/substance.h b/src/include/units/substance.h index 0bc47c3c..4fe89d84 100644 --- a/src/include/units/substance.h +++ b/src/include/units/substance.h @@ -36,7 +36,7 @@ namespace units { template using substance = quantity; - struct mole : unit> {}; + struct mole : unit {}; template<> struct upcasting_traits> : upcast_to {}; inline namespace literals { diff --git a/src/include/units/temperature.h b/src/include/units/temperature.h index 6ee89357..9191ffd9 100644 --- a/src/include/units/temperature.h +++ b/src/include/units/temperature.h @@ -36,7 +36,7 @@ namespace units { template using temperature = quantity; - struct kelvin : unit> {}; + struct kelvin : unit {}; template<> struct upcasting_traits> : upcast_to {}; inline namespace literals { diff --git a/src/include/units/time.h b/src/include/units/time.h index f695ca62..d1bec3d3 100644 --- a/src/include/units/time.h +++ b/src/include/units/time.h @@ -36,7 +36,7 @@ namespace units { template using time = quantity; - struct second : unit> {}; + struct second : unit {}; template<> struct upcasting_traits> : upcast_to {}; struct nanosecond : nano {}; diff --git a/src/include/units/unit.h b/src/include/units/unit.h index 3125f465..8ed2e954 100644 --- a/src/include/units/unit.h +++ b/src/include/units/unit.h @@ -27,7 +27,7 @@ namespace units { - template + template> requires (R::num > 0) struct unit : upcast_base> { using dimension = D;