Commit Graph
2126 Commits
Author SHA1 Message Date
Mateusz Pusz bb6c942e0c refactor: common_quantity_spec now starts with a check of arguments equality 2023-02-08 22:15:44 -08:00
Mateusz Pusz 3686397882 refactor: minor code cleanup 2023-02-08 22:07:12 -08:00
Mateusz Pusz bb05e3434e feat: type traits for template template auto parameters added 2023-02-08 22:03:41 -08:00
Mateusz Pusz 0417507b49 refactor: math refactored to the latest library state 2023-02-08 21:49:19 -08:00
Mateusz Pusz 859bc20fdc refactor: all examples refactored to use a simplified quantity creation 2023-02-08 21:47:48 -08:00
Mateusz Pusz 26ed241662 fix: value_cast fixed 2023-02-08 21:15:42 -08:00
Mateusz Pusz 1f2e57a575 refactor: interconvertible renamed to convertible_to 2023-02-08 21:14:17 -08:00
Mateusz Pusz c21bde85a3 refactor: same_canonical_reference_unit renamed to have_same_canonical_reference_unit 2023-02-08 21:11:57 -08:00
Mateusz Pusz faffbefad2 refactor: get_dimension_for() no longer needed 2023-02-08 21:09:20 -08:00
Mateusz Pusz 4484148735 fix: ambiguity on common_reference resolved 2023-02-08 21:06:14 -08:00
Mateusz Pusz fbc34c8b98 refactor: get_associated_quantity.h moved to a dedicated header file 2023-02-08 21:05:31 -08:00
Mateusz Pusz 290f406746 fix: quantity creation in its operator/ fixed 2023-02-08 21:00:52 -08:00
Mateusz Pusz 68617f68b0 feat: quantity.h now exports quantity_cast and value_cast to simplify library usage 2023-02-08 20:59:08 -08:00
Mateusz Pusz 8a0a61b589 refactor: DerivedQuantitySpec implementation simplified 2023-02-07 22:28:14 -08:00
Mateusz Pusz 8de74eb6f7 feat: call operator of reference does not produce a quantity anymore 2023-02-06 22:39:23 -08:00
Mateusz Pusz ebccabc94c refactor: DerivedDimension definition simplified 2023-02-06 22:34:59 -08:00
Mateusz Pusz 0cebb68e2e fix: broken concept names fixed 2023-02-03 16:58:33 +01:00
Mateusz Pusz 83aee04da0 refactor: quantity_io.h renamed to iostream.h 2023-02-03 16:57:48 +01:00
Mateusz Pusz 764e211f9a fix: perfect forwarding of a number in the reference multiply operator fixed 2023-02-03 16:52:17 +01:00
Mateusz Pusz 0b053933bd feat: core.h header added 2023-02-03 16:51:26 +01:00
Mateusz Pusz cd0ee9276b feat: quantity_cast and multiplying by reference now use perfect forwarding of a number 2023-02-03 15:22:54 +01:00
Mateusz Pusz 7dd5580afb fix: value_cast compilation fixed 2023-02-03 15:19:25 +01:00
Mateusz Pusz b4f47c3fef feat: value_cast support added
Resolves #239 and #120
2023-02-03 11:08:13 +01:00
Mateusz Pusz cf3408a3c8 refactor: implementation cleanup + support for units as references started 2023-02-02 14:56:29 +01:00
Mateusz Pusz 622b3e3cbd test: unit_symbol() tests moved to a dedicated separate test file 2023-01-28 11:11:07 +01:00
Mateusz Pusz 1b2d77af41 feat: quantities of the same kind can now be added, subtracted, or compared to each other 2023-01-28 11:00:50 +01:00
Mateusz Pusz 9a7a55b873 test: test's text output fixed after unit ordering change 2023-01-05 10:39:23 +01:00
Mateusz Pusz 163295842e test: initial version of linear_algebra_test added 2023-01-04 19:06:25 +01:00
Mateusz Pusz 1d83b7a99c fix: incorrect function trailing ; removed 2023-01-04 15:34:10 +01:00
Mateusz Pusz b78b53e757 build(example): custom_systems example removed as not relevant anymore 2023-01-04 15:32:13 +01:00
Mateusz Pusz da64f17895 feat: quantity::number_in(Unit auto) added + removed non-const lvalue overload of number()
Resolves #412
2023-01-03 17:44:44 +01:00
Mateusz Pusz 2cf736a1e6 feat: preventing possible future units crash when using namespace std;
Resolves #317
2022-12-29 20:18:48 +01:00
Mateusz Pusz 6b72dd39c1 refactor: headers with system definitions moved to _systems_ subdirectory 2022-12-29 19:27:54 +01:00
Mateusz Pusz 2571b36964 test: additional checks for dimensionless units added to iec80000 quantities 2022-12-29 19:01:32 +01:00
Mateusz Pusz c7d7c7d49f refactor: isq_angle refactored after consulting with Paul Quincey 2022-12-29 19:00:15 +01:00
Mateusz Pusz 97da55edfa refactor: the rest of the systems refactored for V2 2022-12-29 18:59:10 +01:00
Mateusz Pusz a9c190a7bf test: iec80000 unit test added 2022-12-27 12:51:28 +01:00
Mateusz Pusz 05da8b6153 fix: storage_capacity definition fixed 2022-12-27 12:50:47 +01:00
Mateusz Pusz 12e48ea3c0 fix: _quantity.h_ header added to _base_quantities.h_ to make all the definition complete 2022-12-27 12:49:21 +01:00
Mateusz Pusz 016984f1b3 feat: about half of IEC 80000 quantities support added 2022-12-27 12:20:23 +01:00
Mateusz Pusz 7ee95bcbeb test: metabench tests removed from repo 2022-12-27 11:04:49 +01:00
Mateusz Pusz 26ec17ceb2 refactor: experimental_angle example renamed to strong_angular_quantities + cotes angle fix 2022-12-27 10:56:13 +01:00
Mateusz Pusz f430e81202 style: CMake files reformatted to make pre-commit happy 2022-12-27 10:51:29 +01:00
Mateusz Pusz 6165392d84 test: isq_angle_test added 2022-12-27 10:50:35 +01:00
Mateusz Pusz 84c16b27bb refactor: cotes_angle renamed to cotes_angle_constant + cotes_angle constant introduced 2022-12-27 10:49:47 +01:00
Mateusz Pusz 3653053e48 refactor: experimental_angle example refactored for V2 2022-12-27 10:36:01 +01:00
Mateusz Pusz f0a91aa77e refactor: math functions constraints weakened to allow interoperability with more argument types 2022-12-27 10:29:48 +01:00
Mateusz Pusz eea25c13c7 feat: isq_angle system added 2022-12-27 10:25:31 +01:00
Mateusz Pusz 5914744e5d fix: solid_angular_measure definition fixed 2022-12-27 10:18:37 +01:00
Mateusz Pusz 58949bf22a feat: rad2 unit symbol added 2022-12-27 10:17:58 +01:00