Commit Graph
1928 Commits
Author SHA1 Message Date
Mateusz Pusz e38c7c4460 refactor: magnitudes support refactored to improve compile-times 2024-06-06 20:58:15 +02:00
Mateusz Pusz e382435b98 build: mp-units-contracts CMakeTarget added to reuse contract definition in different separate targets
Refers to #581
2024-06-06 14:07:16 +02:00
Mateusz Pusz 14a1801425 docs: copyright comments added to module files 2024-06-06 13:50:29 +02:00
Mateusz Pusz 1d689b01e4 refactor: 💥 Unit<T> concept now requires T to be marked final 2024-06-06 13:20:46 +02:00
Mateusz Pusz fa85eb3fde refactor: unused is_specialization_of_unit trait removed 2024-06-06 13:19:57 +02:00
Mateusz Pusz c69bd140b2 refactor: all units made final 2024-06-06 13:18:45 +02:00
Mateusz Pusz 4aea85656b refactor: units no longer inherit from each other 2024-06-06 13:16:13 +02:00
Mateusz Pusz 2876ae1ebd build: CMake API parameter values handling and documentation improved
Relates to #581
2024-06-05 08:27:48 +02:00
Mateusz Pusz 760d48502d refactor: unit-related constexpr functions compile-time evaluation limited to only one that determines the return type 2024-06-05 08:24:33 +02:00
Mateusz Pusz fb77585593 refactor: system's units do not inherit from one another anymore
Resolves #512
2024-06-05 08:16:02 +02:00
Yves Delley 4b809ec96c Merge branch 'master' into feature/more-value-casts 2024-06-02 08:03:30 +02:00
Yves Delley 2459409caa created sudo_cast<QP> overload, and merged shared computation into separate helper 2024-06-01 20:09:29 +02:00
Mateusz Pusz 2adc9344ea refactor: some TODO comment addressed or removed 2024-06-01 13:36:22 +02:00
Mateusz Pusz 3c8a0212f0 fix: system_reference::operator[] 2024-06-01 13:20:15 +02:00
Mateusz Pusz 1c5b8de627 refactor: more workarounds for gcc-12 2024-06-01 13:03:20 +02:00
Mateusz Pusz e25364b3e0 refactor: not needed remove_reference_t and remove_cvref_t removed 2024-06-01 10:03:53 +02:00
Mateusz Pusz 1ea2df9209 refactor: most std::remove_const_t removed and some replaced with the GCC-specific workaround 2024-06-01 09:12:16 +02:00
Mateusz Pusz ec287664ee refactor: some TODO comments resolved 2024-05-31 21:07:42 +02:00
Mateusz Pusz 3cd5a7dd42 build: CMake dependencies handling improved for the freestanding mode 2024-05-30 20:50:11 +02:00
Mateusz Pusz cd36e6f974 feat: freestanding support added
Resolves #564, #565, and #556
2024-05-30 19:50:02 +02:00
Mateusz Pusz 641a743684 refactor: terminate replaced with abort and a header file added 2024-05-30 12:54:34 +02:00
Mateusz Pusz a6562acde5 feat: allow configuring GSL library use
Resolves #576
2024-05-30 12:23:14 +02:00
Mateusz Pusz 3a792b4057 fix: IWYU 2024-05-30 12:14:58 +02:00
Mateusz Pusz 09fa158f21 fix: missing <locale> header file added 2024-05-30 08:30:41 +02:00
Mateusz Pusz 1cb86a2271 feat(example): kalman filter examples enabled after text formatting refactoring 2024-05-29 20:25:21 +02:00
Mateusz Pusz da0ab13b0d feat: fma for quantity points added 2024-05-29 19:54:53 +02:00
Mateusz Pusz 411d7d5c50 feat: custom implementation of swap_ranges added 2024-05-28 09:41:25 +02:00
Mateusz Pusz cb7cbf4cb3 refactor: fixed_string refactoring to match the R2 specs 2024-05-22 12:18:48 +02:00
Mateusz Pusz 7322d9a10f refactor: std::simd-like integral_constant usage added to member functions 2024-05-21 12:11:43 +02:00
Mateusz Pusz 20b0848031 refactor: 2-parameters fixed_string constructors are not explicit anymore 2024-05-21 12:11:00 +02:00
Mateusz Pusz 15a6d02152 Merge branch 'master' of github.com:mpusz/mp-units 2024-05-16 12:33:58 +02:00
Mateusz Pusz 5dc21fd29b refactor: zeroth_degree_Fahrenheit definition simplified 2024-05-16 12:33:28 +02:00
Mateusz Pusz ecb39d79c0 fix: missing headers added to quantity_spec.h 2024-05-16 12:31:30 +02:00
Mateusz Pusz a479246ea7 feat: basic_fixed_string implementation and testing improved 2024-05-16 12:30:45 +02:00
Yves DelleyandMateusz Pusz 6c85ba3f17 Update src/systems/include/mp-units/systems/si/unit_symbols.h
Co-authored-by: Mateusz Pusz <mateusz.pusz@gmail.com>
2024-05-14 15:50:04 +02:00
Yves Delley 1e287c2a27 fixed value_cast<ToQP> with matching units but differing point_origin 2024-05-12 11:53:26 +02:00
Yves Delley f30fac17f0 added a bit of documentation 2024-05-12 11:13:00 +02:00
Yves Delley c0efdb1790 better handle simultaneous change of representation, unit and point_origin in value_cast, to prevent overflow in more cases. 2024-05-12 10:57:33 +02:00
Yves Delley d4734f630d add missing unit symbols for ohm 2024-05-11 11:10:30 +02:00
Yves Delley c51baae074 value_cast overloads for ToQ and ToQP 2024-05-10 23:40:54 +02:00
Yves Delley f74f99b7b1 Merge branch 'master' into bugfix/allow-lvalue-references-in-value-cast 2024-05-10 23:29:43 +02:00
Yves Delley 1eb491750c fix formatting 2024-05-10 23:26:12 +02:00
Yves Delley 14f658120e fix value_cast with lvalue references to quantity_point 2024-05-10 23:14:17 +02:00
Mateusz Pusz 9300cb72ea Merge pull request #570 from burnpanck/feature/math-for-quantity-point
added support for quantity_point math
2024-05-11 05:38:49 +09:00
Yves Delley 086e62c80c suggestions from review 2024-05-10 22:23:52 +02:00
Yves Delley d03f9c17a3 fix constexpr and format 2024-05-10 20:15:15 +02:00
Yves Delley d8371074f8 fix quantity_cast to accept lvalue references 2024-05-10 20:07:07 +02:00
Yves Delley ddbdd6a4c2 added support for isfinite isinf and isnan on instances of quantity_point 2024-05-10 20:05:36 +02:00
Mateusz Pusz 54d144d112 refactor: workarounds for clang-tidy-18 2024-05-08 14:46:04 +02:00
Mateusz Pusz 1c164b798a fix: some clang-tidy related changes reverted to fix clang-16 compilation 2024-05-08 12:14:38 +02:00