From 0a7aa690b9ee6af253350690d3e97027c651e6b8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 24 Jul 2019 11:33:15 +0200 Subject: [PATCH] Small documentation update - default value for quantity representation --- doc/DESIGN.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/DESIGN.md b/doc/DESIGN.md index d3b38465..60f96d72 100644 --- a/doc/DESIGN.md +++ b/doc/DESIGN.md @@ -244,11 +244,11 @@ concept Quantity = detail::is_quantity; // exposition only ``` -`units::quantity` provides the interface really similar to `std::chrono::duration` with additional -member types and functions as below: +`units::quantity` provides the interface really similar to `std::chrono::duration`. The difference is that +it uses `double` as a default representation and has a few additional member types and functions as below: ```cpp -template +template class quantity { public: using unit = U; @@ -278,6 +278,8 @@ public: (ratio_divide::den == 1)) [[nodiscard]] constexpr Quantity operator/(const quantity& lhs, const quantity& rhs); + + // ... }; ```