From e49d4cb2972db1ef7fa9e76a2baeb2eca61c43a6 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 13 Jun 2024 17:22:01 +0200 Subject: [PATCH] docs: 2.2 release announcement updated --- docs/blog/posts/2.2.0-released.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/blog/posts/2.2.0-released.md b/docs/blog/posts/2.2.0-released.md index 7303e57c..247d828a 100644 --- a/docs/blog/posts/2.2.0-released.md +++ b/docs/blog/posts/2.2.0-released.md @@ -172,7 +172,7 @@ Additionally, some CMake options were renamed to better express the impact on ou Before this release, the library always depended on [gsl-lite](https://github.com/gsl-lite/gsl-lite) to perform runtime contract and asserts checking. In this release we introduced new options to control if contract checking should be based on [gsl-lite](https://github.com/gsl-lite/gsl-lite), -[ms-gsl](https://github.com/microsoft/GSL), or maybe completely disabled. +[ms-gsl](https://github.com/microsoft/GSL), or may be completely disabled. ## Freestanding support @@ -299,6 +299,27 @@ is why it was renamed to `symbol_text` (:boom: **breaking change** :boom:). inline constexpr struct ohm final : named_unit<{u8"Ω", "ohm"}, volt / ampere> {} ohm; ``` + +## Changes to dimension and quantity specification definitions + +Similarly to units, now also all dimensions and quantity specifications have to be marked final +(:boom: **breaking change** :boom:). + +=== "Now" + + ```cpp + inline constexpr struct dim_length final : base_dimension<"L"> {} dim_length; + inline constexpr struct length final : quantity_spec {} length; + ``` + +=== "Before" + + ```cpp + inline constexpr struct dim_length : base_dimension<"L"> {} dim_length; + inline constexpr struct length : quantity_spec {} length; + ``` + + ## Improved text output With this release, we can print not only whole quantities but also just their units or dimensions.