Mateusz Pusz
9915ae22b5
fix: __cpp_explicit_this_parameter spelling fixed
2022-10-25 19:31:41 +02:00
Mateusz Pusz
cb861dd81a
feat: system's definition highly simplified by removing the need for a system_reference for most cases
2022-10-25 07:27:08 +02:00
Mateusz Pusz
8dcdc7bdac
fix: printing of symbols with fractional powers fixed
2022-10-23 22:19:44 +02:00
Mateusz Pusz
e7bebac2a7
feat: power<Num, Den>() support added for dimensions and units
2022-10-23 10:47:12 +02:00
Mateusz Pusz
9bfe75ebf6
feat: harmonic_ concept enabled
2022-10-22 21:05:14 +02:00
Mateusz Pusz
08b7716f51
feat: std::common_type support for unit added
2022-10-22 20:59:44 +02:00
Mateusz Pusz
b78abce0ae
fix: invalid assertions fixed
2022-10-22 20:19:51 +02:00
Mateusz Pusz
7e18694790
refactor: gsl_Assert replaced with gsl_Expects
2022-10-22 19:31:20 +02:00
Mateusz Pusz
17036cb2d0
feat: unit symbol text output support added
2022-10-22 19:27:39 +02:00
Mateusz Pusz
17fd0900a4
refactor: expression template operations now take function parameters
2022-10-22 09:02:40 +02:00
Mateusz Pusz
914d24a903
refactor: not empty constraints added for defining a symbol
2022-10-21 23:13:10 +02:00
Mateusz Pusz
fddc3480a9
feat: copy algorithm added
2022-10-21 23:11:25 +02:00
Mateusz Pusz
4b83b3a2ee
refactor: text_tools made consteval and [[nodiscard]]
2022-10-21 23:10:56 +02:00
Mateusz Pusz
b734880903
refactor: standard renamed to unicode in basic_symbol_text
2022-10-21 23:10:12 +02:00
Mateusz Pusz
3c890fb6d9
Merge pull request #399 from TheCoconutChef/missing-fixes-for-division-op-in-gcc11
...
fix: constraint recursion for gcc11 on operator/
2022-10-21 02:14:48 -06:00
TheCoconutChef
136af48e70
fix: constraint recursion for gcc11 on operator/
...
A similar fix was applied in 417f842585
for the operator*.
Following discussion in https://github.com/mpusz/units/issues/398 , it
seems appropriate to apply it for operator/.
Other operators (+, -, %) do not seem to suffer from the same problem.
2022-10-20 12:00:18 -04:00
Mateusz Pusz
aca8208568
test: dimension unit tests cleanup
2022-10-20 14:06:22 +02:00
Mateusz Pusz
5a7f58be41
fix: Added a special case for multiplication of opposite magnitude exponents
2022-10-20 14:05:20 +02:00
Mateusz Pusz
0b9b159695
fix: units design refactored and fixed
2022-10-20 14:03:15 +02:00
Mateusz Pusz
c3c0879257
refactor: DimensionSpec concept renamed to DerivedDimensionSpec
2022-10-19 20:44:12 +02:00
Mateusz Pusz
aa33964782
refactor: expression templates engine refactored
2022-10-19 19:56:35 +02:00
Mateusz Pusz
8246b06b4a
feat: type_list_element, type_list_back added; type_list_split refactored
2022-10-19 19:39:18 +02:00
Mateusz Pusz
5975e4c1cc
refactor: named_unit<S, U> should inherit from U to for a correct inheritance hierarchy
2022-10-19 13:16:59 +02:00
Mateusz Pusz
8793aeec23
feat: convertibility check added for the target unit in the system_reference
2022-10-19 13:16:10 +02:00
Mateusz Pusz
ec1dace1f9
feat: PrefixableUnit concept introduced
2022-10-19 13:15:02 +02:00
Mateusz Pusz
f156bc4c71
test: type_list unit tests added
2022-10-19 12:23:04 +02:00
Mateusz Pusz
98a19f6b4c
feat: dimensions design is now complete
2022-10-19 11:21:15 +02:00
Mateusz Pusz
03e064fccd
feat: equivalent support removed
2022-10-18 22:57:02 +02:00
Mateusz Pusz
6d898957ab
docs: invalid comment text fixed
2022-10-18 22:55:58 +02:00
Mateusz Pusz
a5c7934e0e
refactor: units nearly done
2022-10-18 21:24:09 +02:00
Mateusz Pusz
6e8ca72678
refactor: dimensions design cleanup
2022-10-18 17:52:52 +02:00
Mateusz Pusz
3194d45b08
refactor: exposition only members added to expression templates
2022-10-18 17:44:40 +02:00
Mateusz Pusz
6a6fda1837
style: SI unit symbols definition cleanup
2022-10-18 16:09:35 +02:00
Mateusz Pusz
e83b361465
refactor: explicit(false) added for basic_symbol_text
2022-10-18 16:08:22 +02:00
Mateusz Pusz
cf0a770d9b
refactor: quantity arithmetics implemented
2022-10-09 21:32:38 +01:00
Mateusz Pusz
7046b319dc
docs: broken link fixed
2022-10-08 12:15:59 +01:00
Mateusz Pusz
4a49bdda05
refactor: V2 design update
2022-10-06 23:43:01 +01:00
Mateusz Pusz
21e5dda5b7
build(example): gitpod support fixed
2022-10-04 00:15:06 +01:00
Mateusz Pusz
bf8aad46ec
build: gitpod conan profile for clang14 fixed
2022-10-03 20:18:30 +01:00
Mateusz Pusz
d6cf793682
build: clang-12 is not supported in jammy
2022-10-03 20:08:44 +01:00
Mateusz Pusz
6d78ad8646
build: gitpod support updated
2022-10-03 17:34:05 +00:00
Mateusz Pusz
cd52588f56
build: GitPod script updated
2022-10-03 17:45:58 +01:00
Mateusz Pusz
7c02da50d8
fix(example): clang-15 compilation fixed
2022-10-03 18:32:47 +02:00
Mateusz Pusz
6b98671a9f
Merge branch 'master' of github.com:mpusz/units
2022-10-03 15:16:23 +02:00
Mateusz Pusz
645aeed371
ci: clang-15 added to CI
2022-10-03 15:16:18 +02:00
Mateusz Pusz
aeb82a9596
Merge pull request #394 from JohelEGP/llvm16
...
refactor: make typename optional for Clang 16
2022-10-02 03:59:01 -06:00
Johel Ernesto Guerrero Peña
a4183739ad
refactor: make typename optional for Clang 16
2022-10-01 10:12:35 -04:00
Mateusz Pusz
4411b8ea6d
test: dimension unit tests added
2022-09-28 12:49:28 +02:00
Mateusz Pusz
a9b482a661
refactor: magnitude types are much shorter now
...
`units::magnitude<units::base_power<long>{2l, units::ratio{-42l, 1l}}, units::base_power<long>{3l, units::ratio{1l, 1l}}, units::base_power<long>{5l, units::ratio{-41l, 1l}}, units::base_power<long>{7l, units::ratio{1l, 1l}}, units::base_power<long>{6310543l, units::ratio{1l, 1l}}>{}` is now `units::magnitude<units::power_v<2, -42>{}, 3, units::power_v<5, -41>{}, 7, 6310543>{}`
2022-09-22 10:26:55 +02:00
Mateusz Pusz
f375797372
refactor: constexpr replaced with consteval
2022-09-22 10:24:32 +02:00