fix: inline restored for non-template constexpr global variables

This commit is contained in:
Mateusz Pusz committed 2024-09-05 10:06:43 +02:00
1 parent 2e840cfdb4
commit 45013f6752
63 files changed
+1591 -1589

No files matched your search

@@ -249,8 +249,8 @@ include the _mp-units/systems/si/chrono.h_ file to benefit from it. This file pr
to the `std::chrono` abstractions:
```cpp
constexpr struct ts_origin final : relative_point_origin<chrono_point_origin<system_clock> + 1 * h> {} ts_origin;
constexpr struct my_origin final : absolute_point_origin<isq::time> {} my_origin;
inline constexpr struct ts_origin final : relative_point_origin<chrono_point_origin<system_clock> + 1 * h> {} ts_origin;
inline constexpr struct my_origin final : absolute_point_origin<isq::time> {} my_origin;
quantity_point qp1 = sys_seconds{1s};
auto tp1 = to_chrono_time_point(qp1); // OK
@@ -29,7 +29,7 @@ your code using **mp-units**:
// ...
constexpr struct horizontal_length final : quantity_spec<isq::length> {} horizontal_length;
inline constexpr struct horizontal_length final : quantity_spec<isq::length> {} horizontal_length;
// ...
@@ -45,7 +45,7 @@ your code using **mp-units**:
// ...
constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
inline constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
// ...
@@ -65,7 +65,7 @@ your code using **mp-units**:
// ...
constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
inline constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
// ...
@@ -85,7 +85,7 @@ your code using **mp-units**:
// ...
constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
inline constexpr struct horizontal_length final : quantity_spec<horizontal_length, isq::length> {} horizontal_length;
// ...