Commit Graph
682 Commits
Author SHA1 Message Date
Mateusz Pusz 2c9502a2a9 test: units tests for point origin arithmetics added 2023-08-31 19:02:04 +02:00
Mateusz Pusz 2bfc282483 test: missing units tests for quantity::one() aded 2023-08-31 19:01:13 +02:00
Mateusz Pusz 5ee4c5346a test: test_tools.h file cleanup 2023-08-30 18:22:30 +02:00
Mateusz Pusz f1c2c74ab0 refactor: quantity::value() renamed to quantity::numerical_value()
According to https://jcgm.bipm.org/vim/en/1.19.html "quantity value" also contains a unit. According to https://jcgm.bipm.org/vim/en/1.20.html "numerical value" is the correct term for just a number.

Resolves #423
2023-08-30 11:30:35 +02:00
Mateusz Pusz 24803a96cc feat: math trigonometric functions can now be called with integral quantities
Relates to #485
2023-08-29 16:05:48 +02:00
Mateusz Pusz 4705382c17 test: a few checks trigger a bug in clang so they were disabled from compilation on this compiler 2023-08-26 19:43:09 +02:00
Mateusz Pusz f29c57d367 style: formatting to make pre-commit happy 2023-08-25 23:05:36 +02:00
Mateusz Pusz 27ec678314 refactor: workarounds to make gcc-11 compile 2023-08-25 22:47:32 +02:00
Mateusz Pusz f37aa8bbd0 test: unused origin definition removed from concepts_test.cpp 2023-08-25 20:28:24 +02:00
Mateusz Pusz 6f1832ceb3 feat: BaseQuantitySpec concept removed as it had no use 2023-08-25 20:27:38 +02:00
Mateusz Pusz 636f1e1f92 test: conditional compilation set for constexpr round() usage 2023-08-25 19:55:36 +02:00
Mateusz Pusz af4615e466 test: quantity_point_test compilation enabled 2023-08-24 19:17:57 +02:00
Mateusz Pusz 8b661b9b0d test: clang does not allow skipping template template parameters 2023-08-24 19:16:36 +02:00
Mateusz Pusz 9696e7466b test: unused defintions removed from tests 2023-08-24 19:15:05 +02:00
Mateusz Pusz 624b7c7404 fix: some fixes revealed during clang compilation 2023-08-24 19:14:23 +02:00
Mateusz Pusz 3cc653fae1 build: fmt updated to 10.1.0 to enable gcc-13 compilation 2023-08-23 20:01:23 +02:00
Mateusz Pusz a9204e2473 refactor: number() and number_in() renamed to value() and value_in()
Resolves #423
2023-08-23 17:15:32 +02:00
Mateusz Pusz ae92b49775 refactor: op[U] for quantity and quantity_point replaced with .in(U)
Resolves #469
2023-08-23 16:46:15 +02:00
Mateusz Pusz 5af82e3162 refactor: point_from renamed to point_for 2023-08-23 15:42:55 +02:00
Mateusz Pusz fb9f288c56 feat: quantity_point construction from quantity made private + make_quantity_point added 2023-08-23 12:49:14 +02:00
Mateusz Pusz ed279c43ab feat: quantity_point CTAD from Quantity removed 2023-08-23 11:53:49 +02:00
Mateusz Pusz 7594048850 fix: relative_point_origin::quantity_spec setting fixed 2023-08-23 11:42:43 +02:00
Mateusz Pusz 71981172c3 feat: quantity_point does not take a default origin anymore + common_qs logic removed from the binary operators 2023-08-23 10:41:37 +02:00
Mateusz Pusz 07ce64d6e7 refactor: relative() renamed to quantity_from_origin()
Resolves #479
2023-08-18 18:49:04 +02:00
Mateusz Pusz 752408449f feat: PointOrigin arithmetics support added 2023-08-18 18:35:41 +02:00
Mateusz Pusz 110986ee1f feat: quantity_cast<kind_of_qs>(associated_unit) now returns the bare unit as a reference 2023-08-18 11:11:29 +02:00
Mateusz Pusz ef39b8c4c7 feat: kind_of_qs[unit] now returns a bare unit as a reference 2023-08-18 11:01:40 +02:00
Mateusz Pusz a3cf3f4087 feat: DimensionOf and QuantitySpecOf added and reused in ReferenceOf concept 2023-08-18 10:58:25 +02:00
Mateusz Pusz 1d822d0ea4 test: relative_point_origin construction simplified 2023-08-15 11:21:07 +02:00
Mateusz Pusz 542668e801 test: more chrono tests added 2023-08-15 11:18:15 +02:00
Mateusz Pusz 794ac2fa67 test: more binary operators tests added for quantity_point 2023-08-03 11:36:07 +02:00
Mateusz Pusz 3628e99aaa feat: CTAD for quantity_point can now deduce point_origin 2023-08-03 11:31:58 +02:00
Mateusz Pusz ccdf5d319a feat: point_from extended with the case of the same origin 2023-08-02 11:20:32 +02:00
Mateusz Pusz 730f4da136 test: various origins tests added for quantity_point 2023-08-01 22:07:24 +02:00
Mateusz Pusz b19bf0761c feat: relative_point_origin support added
Relates to #414
2023-08-01 17:24:01 +02:00
Mateusz Pusz ea6325a5eb refactor: some parameterized quantity specs renamed
Relates to #475
2023-08-01 12:38:29 +02:00
Mateusz Pusz 7ce8173b40 test: initial version of quantity_point_test added 2023-08-01 12:04:31 +02:00
Mateusz Pusz 571bf47b95 test: quantity_test cleanup 2023-08-01 12:01:12 +02:00
Mateusz Pusz a6e4851efe test: more binary operators tests added for quantity 2023-08-01 12:00:35 +02:00
Mateusz Pusz 1e81069d53 feat: absolute_point_origin convertibility removed 2023-08-01 11:53:50 +02:00
Mateusz Pusz 5d73cd0730 feat: dimensionless quantities with a unit one are not special anymore 2023-07-10 16:53:49 +02:00
Mateusz Pusz 7b47b2fe57 fix: text output of 8-bit integers fixed (resolves #470) 2023-07-05 11:24:53 +02:00
Mateusz Pusz 52ce2b21f7 refactor: iostream.h renamed to ostream.h 2023-06-23 15:03:04 +02:00
Mateusz Pusz ba1f58af76 refactor: All the macros refactored to have MP_UNITS_ prefix 2023-06-21 18:05:21 +02:00
Mateusz Pusz 3725db4243 style: whitespaces and formatting fixed to make pre-commit happy 2023-06-21 11:28:24 +02:00
Mateusz Pusz dde5bcab7e Merge branch 'master' of github.com:mpusz/units 2023-06-19 14:02:39 +02:00
Mateusz Pusz 7fc88facd6 feat: arcminute and arcsecond support added 2023-06-19 14:01:36 +02:00
Mateusz Pusz 3d20dfef91 refactor: unit_symbol_separator::dot renamed to half_high_dot 2023-06-18 10:28:51 +02:00
Mateusz Pusz 66f0442eca fix(example): constraints from creates_quantity concepts removed 2023-06-16 17:17:30 +03:00
Mateusz Pusz 5c1b1e0ff4 test: QUANTITY_SPEC_ macro fixed 2023-06-16 17:00:41 +03:00