std::ratio<1> set as a default for unit
This commit is contained in:
1 parent
1bbbd02f1c
commit
a63b5ab111
7 files changed
+7
-7
No files matched your search
@@ -36,7 +36,7 @@ namespace units {
|
||||
template<Unit U = struct second, Number Rep = double>
|
||||
using time = quantity<dimension_time, U, Rep>;
|
||||
|
||||
struct second : unit<dimension_time, std::ratio<1>> {};
|
||||
struct second : unit<dimension_time> {};
|
||||
template<> struct upcasting_traits<upcast_from<second>> : upcast_to<second> {};
|
||||
|
||||
struct nanosecond : nano<second> {};
|
||||
|
||||
Reference in new issue
Block a user