docs: Compiler Explorer links updated + removed fmt as it times out CE again

This commit is contained in:
Mateusz Pusz
2020-09-11 08:46:09 +02:00
parent 20f3aba256
commit e273acc9f3
2 changed files with 12 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ static_assert(10_q_km / 5_q_km == 2);
static_assert(1000 / 1_q_s == 1_q_kHz); static_assert(1000 / 1_q_s == 1_q_kHz);
``` ```
_Try it on the [Compiler Explorer](https://godbolt.org/z/XPmjPz)._ _Try it on the [Compiler Explorer](https://godbolt.org/z/oc7P9z)._
This library requires some C++20 features (concepts, classes as NTTPs, ...). Thanks to This library requires some C++20 features (concepts, classes as NTTPs, ...). Thanks to
them the user gets a powerful but still easy to use interface and all unit conversions them the user gets a powerful but still easy to use interface and all unit conversions
@@ -74,10 +74,10 @@ int main()
Speed auto v4 = quantity_cast<int>(v3); Speed auto v4 = quantity_cast<int>(v3);
std::cout << v1 << '\n'; // 110 km/h std::cout << v1 << '\n'; // 110 km/h
std::cout << fmt::format("{}", v2) << '\n'; // 70 mi/h std::cout << v2 << '\n'; // 70 mi/h
std::cout << fmt::format("{:%Q in %q}", v3) << '\n'; // 31.2928 in m/s std::cout << v3 << '\n'; // 31.2928 m/s
std::cout << fmt::format("{:%Q}", v4) << '\n'; // 31 std::cout << v4 << '\n'; // 31 m/s
} }
``` ```
_Try it on the [Compiler Explorer](https://godbolt.org/z/xE91TY)._ _Try it on the [Compiler Explorer](https://godbolt.org/z/Wd9d87)._

View File

@@ -23,7 +23,7 @@ Here is a small example of possible operations::
.. admonition:: Try it on Compiler Explorer .. admonition:: Try it on Compiler Explorer
`Example #1 <https://godbolt.org/z/XPmjPz>`_ `Example #1 <https://godbolt.org/z/oc7P9z>`_
This library requires some C++20 features (concepts, classes as This library requires some C++20 features (concepts, classes as
:abbr:`NTTP (Non-Type Template Parameter)`, ...). Thanks to them the user gets a powerful :abbr:`NTTP (Non-Type Template Parameter)`, ...). Thanks to them the user gets a powerful
@@ -52,14 +52,14 @@ of basic library features::
Speed auto v4 = quantity_cast<int>(v3); Speed auto v4 = quantity_cast<int>(v3);
std::cout << v1 << '\n'; // 110 km/h std::cout << v1 << '\n'; // 110 km/h
std::cout << fmt::format("{}", v2) << '\n'; // 70 mi/h std::cout << v2 << '\n'; // 70 mi/h
std::cout << fmt::format("{:%Q in %q}", v3) << '\n'; // 31.2928 in m/s std::cout << v3 << '\n'; // 31.2928 m/s
std::cout << fmt::format("{:%Q}", v4) << '\n'; // 31 std::cout << v4 << '\n'; // 31 m/s
} }
.. admonition:: Try it on Compiler Explorer .. admonition:: Try it on Compiler Explorer
`Example #2 <https://godbolt.org/z/xE91TY>`_ `Example #2 <https://godbolt.org/z/Wd9d87>`_
.. seealso:: .. seealso::