Commit Graph
2810 Commits
Author SHA1 Message Date
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
Mateusz Pusz 79ef21b2a5 refactor: power::ratio renamed to power::exponent 2022-09-22 10:23:41 +02:00
Mateusz Pusz 726c67b194 refactor: ratio usage added to power 2022-09-16 17:40:13 -06:00
Mateusz Pusz 2d5386504d refactor: Unused code commented for now 2022-09-16 17:38:40 -06:00
Mateusz Pusz 2f365b5135 refactor: mag and mag_power changed to variable templates 2022-09-15 15:13:46 -06:00
Mateusz Pusz 70185b49c2 refactor: constexpr replaced with consteval 2022-09-15 14:52:54 -06:00
Mateusz Pusz 5d23567bec feat(example): experimental_angle example replaced 2022-09-15 12:00:13 -06:00
Mateusz Pusz 6bc54819f3 fix: 💥 standard_gravity removed from si2019 namespace as it is not an SI defining constant 2022-09-15 11:49:37 -06:00
Mateusz Pusz c96e88e1be Merge branch 'master' of github.com:mpusz/units 2022-09-12 18:00:36 -06:00
Mateusz Pusz 8cd19e4022 Merge pull request #393 from chiphogg/chiphogg/terminator
Replace compile-time exceptions with terminations
2022-09-11 18:45:41 -06:00
Chip Hogg 06b3a64252 Replace compile-time exceptions with terminations
This appears to cause problems under `-fno-exceptions` in some rare instances.

Should fix #390.
2022-09-12 00:34:45 +00:00
Mateusz Pusz 22c26e62c6 refactor: prefixes refactored to benefit from mag_power() 2022-09-11 19:47:31 +02:00
Mateusz Pusz 806fb0751b refactor: short_units renamed to unit_symbols 2022-09-10 08:44:46 +02:00
Mateusz Pusz b614a8c887 refactor: all dimension types now have _dim as a suffix 2022-09-09 15:22:35 +02:00
Mateusz Pusz 9d3a144551 test: a few more tests added to the framework v2 example 2022-09-09 15:18:49 +02:00
Mateusz Pusz 1c7ea89771 refactor: short units inlined subnamespaces introduced to limit possible name clashes 2022-09-09 11:50:47 +02:00
Mateusz Pusz 1a2c215578 refactor: derived dimensions now can be used in the equations but will not be visible in the final type 2022-09-09 11:46:08 +02:00
Mateusz Pusz 3480d309c3 chore: Chip Hogg (@chiphogg) added as a co-author of the library 🎉 2022-09-09 08:38:16 +02:00
Mateusz Pusz f516e3287e refactor: nodiscard added 2022-09-08 23:08:00 +02:00
Mateusz Pusz a3d4c8f01f refactor: derived_dimension can now store only powers of base dimensions 2022-09-08 23:07:14 +02:00
Mateusz Pusz 5e36dd6167 fix: expr_consolidate fixed for two the same powers 2022-09-08 21:08:06 +02:00
Mateusz Pusz 8d711cdf8e fix: hello_units reverted to the original state 2022-09-08 19:21:47 +02:00
Mateusz Pusz daf97a3a86 feat: initial very dirty version of V2 framework 2022-09-08 19:11:45 +02:00
Mateusz Pusz 6bccc57800 docs: angular units chapter updated with a code example 2022-09-08 06:51:43 +02:00
Mateusz Pusz fc849fe7fe style: trailing whitespaces removed to make pre-comit happy 2022-09-07 10:42:34 +02:00
Mateusz Pusz d0eceefe80 refactor: dead ratio code removed 2022-09-06 23:49:16 +02:00