diff --git a/README.md b/README.md index b97e6299..128e90a5 100644 --- a/README.md +++ b/README.md @@ -92,13 +92,8 @@ int main() constexpr Speed auto v2 = mi_per_h(70.); constexpr Speed auto v3 = avg_speed(220_q_km, 2_q_h); constexpr Speed auto v4 = avg_speed(si::length(140), si::time(2)); -#if UNITS_DOWNCAST_MODE == 0 - constexpr Speed auto v5 = quantity_cast>(v3); - constexpr Speed auto v6 = quantity_cast(v4); -#else constexpr Speed auto v5 = quantity_cast>(v3); constexpr Speed auto v6 = quantity_cast(v4); -#endif constexpr Speed auto v7 = quantity_cast(v6); std::cout << v1 << '\n'; // 110 km/h @@ -111,4 +106,4 @@ int main() } ``` -_Try it on the [Compiler Explorer](https://godbolt.org/z/9fnzfbhb6)._ +_Try it on the [Compiler Explorer](https://godbolt.org/z/bcb87Kvea)._ diff --git a/docs/quick_start.rst b/docs/quick_start.rst index 2e468ccd..857ddb01 100644 --- a/docs/quick_start.rst +++ b/docs/quick_start.rst @@ -66,13 +66,8 @@ of basic library features:: constexpr Speed auto v2 = mi_per_h(70.); constexpr Speed auto v3 = avg_speed(220_q_km, 2_q_h); constexpr Speed auto v4 = avg_speed(si::length(140), si::time(2)); - #if UNITS_DOWNCAST_MODE == 0 - constexpr Speed auto v5 = quantity_cast>(v3); - constexpr Speed auto v6 = quantity_cast(v4); - #else constexpr Speed auto v5 = quantity_cast>(v3); constexpr Speed auto v6 = quantity_cast(v4); - #endif constexpr Speed auto v7 = quantity_cast(v6); std::cout << v1 << '\n'; // 110 km/h @@ -86,7 +81,7 @@ of basic library features:: .. admonition:: Try it on Compiler Explorer - `Example #2 `_ + `Example #2 `_ .. seealso::