forked from mpusz/mp-units
docs: C++23 examples placed first so they open by default in the docs
This commit is contained in:
@@ -95,14 +95,6 @@ including:
|
||||
|
||||
`QuantitySpec` can be defined by the user in one of the following ways:
|
||||
|
||||
=== "C++20"
|
||||
|
||||
```cpp
|
||||
inline constexpr struct length : quantity_spec<length, dim_length> {} length;
|
||||
inline constexpr struct height : quantity_spec<height, length> {} height;
|
||||
inline constexpr struct speed : quantity_spec<speed, length / time> {} speed;
|
||||
```
|
||||
|
||||
=== "C++23"
|
||||
|
||||
```cpp
|
||||
@@ -111,6 +103,14 @@ including:
|
||||
inline constexpr struct speed : quantity_spec<length / time> {} speed;
|
||||
```
|
||||
|
||||
=== "C++20"
|
||||
|
||||
```cpp
|
||||
inline constexpr struct length : quantity_spec<length, dim_length> {} length;
|
||||
inline constexpr struct height : quantity_spec<height, length> {} height;
|
||||
inline constexpr struct speed : quantity_spec<speed, length / time> {} speed;
|
||||
```
|
||||
|
||||
=== "Portable"
|
||||
|
||||
```cpp
|
||||
|
||||
Reference in New Issue
Block a user