Mateusz Pusz
e5d2b95a1b
fix: std::isnan compilation fixed for freestanding and C++20
2025-02-05 18:16:15 +01:00
Mateusz Pusz
88439828a5
feat: std::numeric_limits support added
...
Resolves #408
2025-02-05 18:04:43 +01:00
Mateusz Pusz
b8855dc7ba
fix: floor and ceil constaints fixed
2025-02-05 17:27:32 +01:00
Mateusz Pusz
8d2dddb8b6
refactor: less, ceil, and round refactored and improved + more unit tests for round
...
Resolves #672
2025-02-05 12:10:36 +01:00
Mateusz Pusz
0b14d69539
feat: quantity::one() removed
...
Related to #408
2025-02-05 12:08:32 +01:00
Mateusz Pusz
94d7b2bb10
docs: reactive power fixed in the blog article
2025-01-26 13:56:33 +01:00
Mateusz Pusz
7ea23dd8da
docs: complex character added to the "Quantity character" chapter
2025-01-24 12:03:54 +01:00
Mateusz Pusz
a74658937a
feat: rankine unit added
2025-01-22 11:01:36 +01:00
Mateusz Pusz
7c54067a55
fix: type ordering in a unit test fixed for gcc
2025-01-21 12:53:57 +01:00
Mateusz Pusz
becb456da5
fix: missing get_common_unit() overload added
...
Resolves #666
2025-01-21 12:37:54 +01:00
Mateusz Pusz
a489548cd3
docs: intro to "Bringing Quantity-Safety To The Next Level" improved
2025-01-17 14:10:34 +01:00
Mateusz Pusz
d891e866dc
docs: "Should we get rid of a quantity_point?" chapter extended with an alternative solution
2025-01-17 12:15:50 +01:00
Mateusz Pusz
329ffdaacb
docs: minor cleanup of the blog post based on Johel's feedback
2025-01-15 16:32:24 +01:00
Mateusz Pusz
10295ade29
docs: std::abs() mentioned in the info admonition in a blog post
2025-01-15 14:36:01 +01:00
Mateusz Pusz
a321ad21c2
Merge branch 'master' of github.com:mpusz/units
2025-01-15 14:03:27 +01:00
Mateusz Pusz
c237c02f69
docs: quantity-safety mentioned in the docs
2025-01-15 14:03:18 +01:00
Mateusz Pusz
c4d1049a13
docs: "Bringing Quantity-Safety To The Next Level" blog post added
2025-01-15 14:02:35 +01:00
Mateusz Pusz
b2dbc1e69a
refactor: std::convertible_to replaced with std::same_as in basic_fixed_string
2025-01-13 19:18:52 +01:00
Mateusz Pusz
a5c1f42abe
docs: explicit unit conversion example added to the "Symbols of common units" chapter
2025-01-13 14:08:54 +01:00
Mateusz Pusz
3cc82e7fc3
Merge pull request #664 from jvocht/master
...
Add static tests for concept DimensionOf
2025-01-13 08:20:03 +01:00
jvocht
44cbf82012
Fix clang-format error caused by missing to run pre-commit.
2025-01-11 17:41:56 +01:00
jvocht
f6940e224c
Add new tests for base dimension of quanties of the same kind and for derived dimensions. Remove temporary helper objects.
2025-01-11 17:31:03 +01:00
Jörn Seaman
3cd80dea87
Merge branch 'mpusz:master' into master
2025-01-11 17:12:58 +01:00
Mateusz Pusz
0ba48b72f4
fix: make_quantity_point constraints fixed
2025-01-10 23:05:36 +01:00
Mateusz Pusz
c7b822ec54
fix: point_origin_interface::op+ constraints fixed
2025-01-10 22:59:56 +01:00
Mateusz Pusz
3bac7a4876
fix: inverse(Quantity) fixed for subkinds of dimensionless
2025-01-10 22:50:26 +01:00
Mateusz Pusz
e15205e47c
refactor: point_origin_interface::op+ return type unified with the rest of the interfaces
2025-01-09 14:01:39 +01:00
Mateusz Pusz
7ed5707e31
refactor: make_quantity_point introduced
2025-01-09 13:46:42 +01:00
Mateusz Pusz
2d10a30d27
fix: compile-time branch condition fixed in quantity_point::point_for
2025-01-09 13:44:21 +01:00
jvocht
c758cb37e6
Add static tests for concept DimensionOf
2025-01-04 16:32:30 +01:00
Mateusz Pusz
db18eec823
Merge pull request #663 from FrancoisCarouge/fix-quantity-spec-missing-lint-end
...
fix: `quantity_spec` missing lint block end
2024-12-31 10:12:32 +01:00
FrancoisCarouge
9adfa6ea43
fix: quantity_spec missing lint block end
2024-12-30 12:31:53 -08:00
Mateusz Pusz
6f0a81ac80
fix: unit_symbol() and dimension_symbol() returns now std::basic_string_view<CharT>
2024-12-29 11:01:43 +01:00
Mateusz Pusz
e94df6e895
fix: unused convertible_kinds() argument removed
2024-12-28 22:23:38 +01:00
Mateusz Pusz
814f937e03
fix: MSVC build fixed
2024-12-28 22:19:35 +01:00
Mateusz Pusz
dd6f29b65e
fix: std::tuple is not freestanding on gcc-14 with C++23
2024-12-28 21:00:08 +01:00
Mateusz Pusz
74988f676f
Merge branch 'quantity_spec_refactor'
2024-12-28 14:13:40 +01:00
Mateusz Pusz
5382e08fdd
fix: compilation fixed after rebase
2024-12-28 14:12:28 +01:00
Mateusz Pusz
a9525fa301
fix: inconsistencies in get_common_quantity_spec() fixed
2024-12-28 14:02:22 +01:00
Mateusz Pusz
c887b11e6f
style: pre-commit rules updated
2024-12-28 14:02:22 +01:00
Mateusz Pusz
71917a41dc
refactor: inverse() constraints improved
2024-12-28 14:02:22 +01:00
Mateusz Pusz
06cbfae3b3
feat: quantity_spec conversions improved
2024-12-28 14:02:03 +01:00
Mateusz Pusz
b685521a18
Revert "refactor: QuantitySpec convertibility concepts replaced with direct function calls"
...
This reverts commit 09488409d2 .
2024-12-28 13:52:24 +01:00
Mateusz Pusz
146d7a32fb
Merge branch 'master' of github.com:mpusz/units
2024-12-28 13:50:10 +01:00
Mateusz Pusz
ba6e19dcef
Merge pull request #660 from rothmichaels/feature/gitignore-ds_store
...
Add .DS_Store to .gitignore
2024-12-20 09:13:38 +01:00
Roth Michaels
7fd24315f1
Add .DS_Store to .gitignore
...
This file is added by macOS (e.g. when browsing the directory in Finder).
2024-12-19 18:34:40 -05:00
Mateusz Pusz
e3ec5cb121
Merge pull request #659 from rothmichaels/feature/std-format-apple-clang-16
...
Enable use of std::format for AppleClang / Xcode 16
2024-12-19 20:15:26 +01:00
Roth Michaels
8293f023dd
Update apple-clang compiler support info for std::format
2024-12-19 14:10:21 -05:00
Roth Michaels
7af8f7ecc8
Update apple-clang job matrix
...
Specify that `std::format` is supported for Xcode 16.1.
2024-12-19 14:10:21 -05:00
Roth Michaels
43729c6190
Enable use of std::format for AppleClang / Xcode 16
...
Specified the minimum apple-clang version to support `std::format` to 16
for _connanfile.py_. Xcode 16 does include the `<format>` header but
does not seem to have the __cpp_lib_format compatibility macro defined
so a similar override was needed as we had for Clang 17.
To be able to use `std::format` with Xcode 16 I had to pass
`-DMP_UNITS_API_STD_FORMAT=AUTO` when calling `cmake`. Is this expected
or is this a sign I missed something in my changes to _CMakeLists.txt_?
2024-12-19 12:54:55 -05:00