59 Commits

Author SHA1 Message Date
Mateusz Pusz
c0939d0c04 fix(example): value truncation warnings silenced for measurement 2025-12-14 18:17:40 +01:00
Mateusz Pusz
4d8726fd87 feat(example): measurement.h extracted for easier reuse 2025-12-13 13:18:59 +01:00
Mateusz Pusz
50c05bddb3 refactor: format.h header file made deprecated 2025-06-20 09:06:49 +02:00
Mateusz Pusz
f7fc8dd715 Revert "refactor(example): explicit conversions added for ranged_representation arguments"
This reverts commit 0811ca92e1.
2025-04-03 08:17:54 +01:00
Mateusz Pusz
0811ca92e1 refactor(example): explicit conversions added for ranged_representation arguments 2025-04-03 08:00:09 +01:00
Mateusz Pusz
6a9f883335 refactor: deprecated literal operators 2025-03-19 12:31:37 +01:00
Mateusz Pusz
06cbfae3b3 feat: quantity_spec conversions improved 2024-12-28 14:02:03 +01:00
Mateusz Pusz
465f88d500 refactor: 💥 is_XXX customization points for representation types removed 2024-11-26 14:48:08 +01:00
Mateusz Pusz
1ee824423e refactor: usage of v for the function argument name changed to prevent shadowing errors 2024-11-12 16:22:14 +01:00
Mateusz Pusz
76057eaf7c feat(example): treat_as_floating_point specializations for examples' types removed 2024-10-26 19:15:34 +02:00
Mateusz Pusz
7eb9b764bd fix: workarounds for not-working CWG2387 2024-09-05 22:05:35 +02:00
Mateusz Pusz
45013f6752 fix: inline restored for non-template constexpr global variables 2024-09-05 10:06:43 +02:00
Mateusz Pusz
2e840cfdb4 refactor: Repetitive inline constexpr removed as no longer needed
Not needed anymore as stated in cplusplus/draft#4601
2024-09-05 08:43:36 +02:00
Mateusz Pusz
b870b85c25 feat: import std; support added
Resolves #595
2024-07-16 17:36:00 +02:00
Mateusz Pusz
47c5563e16 refactor: deleted function not needed in validated_type 2024-06-22 18:58:22 +02:00
Mateusz Pusz
05fc1e29c8 refactor: 💥 from now on point origins must be marked final + absolute_point_origin does not use CRTP anymore 2024-06-13 19:24:40 +02:00
Mateusz Pusz
e90cffcbda refactor: text formatting library header files are no longer included in compat_macros.h 2024-06-10 22:04:41 +02:00
Mateusz Pusz
ed53cf03f0 refactor: contract support library header fles are no longer included in compat_macros.h 2024-06-10 22:00:46 +02:00
Mateusz Pusz
a6562acde5 feat: allow configuring GSL library use
Resolves #576
2024-05-30 12:23:14 +02:00
Mateusz Pusz
75f719add7 refactor: code refactored to comply with clang-tidy 2024-05-08 11:12:38 +02:00
Mateusz Pusz
8ea346be1c refactor: 💥 header files with the entire system definitions moved up in the directory tree 2024-04-25 16:34:11 +02:00
Mateusz Pusz
c066104af7 refactor: 💥 framework.h introduced + IWYU 2024-04-24 21:09:29 +02:00
Mateusz Pusz
be317116fc refactor: missing header files included 2024-02-23 14:06:53 +01:00
Mateusz Pusz
a9deec9d59 refactor: example applications refactored to a new formatting syntax 2024-01-23 21:49:17 +01:00
Mateusz Pusz
a7cb512f87 fix: modules build fixed 2024-01-06 08:51:01 +01:00
Mateusz Pusz
fb8552b1d9 refactor: core-fmt and core-ostream modules merged with core 2024-01-06 08:51:01 +01:00
Mateusz Pusz
0eaf6e2e56 refactor: modules support redesigned 2024-01-06 08:51:01 +01:00
Johel Ernesto Guerrero Peña
7cb2099af5 feat: add module mp_units 2024-01-06 08:51:00 +01:00
Mateusz Pusz
6324f6dc2a Merge pull request #522 from mpusz/implicit_point_origin
feat: implementation of implicit point origins
2023-12-26 11:09:43 +01:00
Mateusz Pusz
7f0e7f8ca8 refactor: 💥 SI-related trigonometric functions moved to the si subnamespace 2023-12-26 09:31:11 +01:00
Mateusz Pusz
f2abaa28bc feat: quantity_from_zero() enabled for absolute point origins 2023-12-22 16:41:14 +01:00
Mateusz Pusz
4192e1edea style: formatting changed to make pre-commit happy 2023-12-08 12:54:36 +01:00
Mateusz Pusz
da8721b997 feat: users are now allowed to inherit their ow types from absolute point origins 2023-12-03 16:15:38 +01:00
Mateusz Pusz
b96be72457 feat: 💥 quantity_point does not provide zero() anymore 2023-10-15 09:39:18 +02:00
Mateusz Pusz
00a2bce0e8 fix(example): latitude and longitude fixed to include 0 for N and E respectively 2023-10-03 11:00:33 -06:00
Mateusz Pusz
e085beef40 feat: qp.quantity_from(PO) added 2023-09-13 11:57:22 +02:00
Mateusz Pusz
3b2ca4084a refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
Resolves #479 and relates to #477
2023-09-13 10:09:08 +02:00
Mateusz Pusz
cbcc6f4627 feat: compare.h header added with checks against zero
Resolves #487
2023-09-13 08:55:06 +02:00
Mateusz Pusz
d7261c8f76 fix(example): treat_as_floating_point specified for validated_type and ranged_representation 2023-09-04 12:30:14 +02:00
Mateusz Pusz
f0e1e202db fix: latitude and longitude are now quantity points and have proper formatting 2023-09-04 11:20:00 +02:00
Mateusz Pusz
81698f02e5 feat(example): validated_type now properly registers as a scalar type 2023-09-04 11:16:25 +02:00
Mateusz Pusz
b3fb025053 feat(example): text output added to validated_type and ranged_representation 2023-09-04 11:15:33 +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
a9204e2473 refactor: number() and number_in() renamed to value() and value_in()
Resolves #423
2023-08-23 17:15:32 +02:00
Mateusz Pusz
e49e6c40ae feat: absolute() member function removed from quantity_point 2023-08-23 14:52:09 +02:00
Mateusz Pusz
1e81069d53 feat: absolute_point_origin convertibility removed 2023-08-01 11:53:50 +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
2dc420c505 fix: new quantity creation policy for irrational magnitudes forbids creation of longitude and latitude with an integral representation 2023-06-08 22:19:34 +02:00
Mateusz Pusz
561fbf7c93 merge branch master 2023-05-26 13:53:52 +02:00
Mateusz Pusz
7d9ae3ec31 refactor: mp_units subdirectory renamed to mp-units 2023-05-25 12:47:10 +02:00