Commit Graph
1860 Commits
Author SHA1 Message Date
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 611e380ed4 fix: missing constexpr added to a quantity_point constructor 2023-12-02 14:17:20 +01:00
Mateusz Pusz b6b5832c56 refactor: unit_symbol changed to consteval 2023-11-30 10:56:09 +01:00
Mateusz Pusz 0e29354bc0 docs: TODO note added to unit_symbol() 2023-11-30 10:55:41 +01:00
Mateusz Pusz 2c8783bda1 refactor: unit_symbol_formatting enums now use std::int8_t as a representation type 2023-11-30 10:54:49 +01:00
Mateusz Pusz 29c83c0d84 feat: 💥 symbol_text definition simplified 2023-11-30 09:25:29 +01:00
Mateusz Pusz 97d5bb569b refactor: more type members added to fixed_string definition 2023-11-30 09:23:13 +01:00
Mateusz Pusz 683c49bef3 style: clang-format updated to 17.0.5 in pre-commit 2023-11-28 14:19:04 +01:00
Mateusz Pusz fa596fffc6 refactor: 💥 make_xxx factory functions replaced with two-parameter constructors
Resolves #521
2023-11-28 11:52:37 +01:00
Mateusz Pusz 80129b32d7 Merge branch 'master' of github.com:mpusz/units 2023-11-08 15:37:16 -10:00
Mateusz Pusz ae69e2e2b6 fix: are_ingredients_convertible now mandates explicit conversion for To dimensionless quantities 2023-11-06 16:52:10 -10:00
Mateusz Pusz 162514c19e docs: "canonical unit" added to glossary and its documentation in code was updated 2023-11-04 21:36:03 +01:00
Mateusz Pusz d195e2b3bf fix: equality for dimensions fixed to provide transitivity 2023-11-03 21:18:57 +01:00
Mateusz Pusz 1f14184ac3 style: clang-format updated to clang 17 2023-10-25 14:38:26 +02:00
Mateusz Pusz 4abef7b245 refactor: duplicated forward declaration of quantity removed 2023-10-21 08:17:55 +02:00
Mateusz Pusz df2616927d refactor: quantity operators refactored 2023-10-20 21:21:07 +02:00
Mateusz Pusz 15922b5bd8 fix: CommonlyInvocableQuantities was overconstrained for the current library design 2023-10-20 09:39:24 +02:00
Mateusz Pusz eaa2ddbf01 refactor: quantity operators constraints refactored 2023-10-20 08:42:22 +02:00
Mateusz Pusz 32ea1bd9b4 feat: common_type with a raw value is not needed anymore as for a long time now raw values are not convertible to the dimensionless quantities 2023-10-18 21:03:21 +02:00
Mateusz Pusz d5549ff92d feat: zero_Fahrenheit point origin added 2023-10-18 17:17:09 +02:00
Mateusz Pusz d3ad78a9dd fix: Fahrenheit conversion ratio was inverted 2023-10-18 16:34:39 +02:00
Mateusz Pusz 8e48906729 refactor: quantity_from_origin_ data member now has much less friendly name 2023-10-17 14:29:59 +02:00
Mateusz Pusz abafd1d38e refactor: numerical_value_ data member now has much less friendly name 2023-10-17 14:16:22 +02:00
Mateusz Pusz 6e7a2fd0bb refactor: order of overload for Unit changed 2023-10-17 12:11:32 +02:00
Mateusz Pusz 98d07b9ed1 feat: 💥 quantity_spec and its kind should not compare equal 2023-10-17 09:45:31 +02:00
Mateusz Pusz ff3d1e87fa refactor: 💥 unit_symbol<fmt>(U) signature refactored and the resulting text can now also be used at runtime
Resolves (#501)
2023-10-17 09:09:18 +02:00
Mateusz Pusz 909d9a7089 feat: basic_fixed_string(const CharT*, std::integral_constant<std::size_t, N>) constructor added 2023-10-17 08:59:25 +02:00
Mateusz Pusz daadccebe0 refactor: additional constraints added to the fixed_string(CharT) constructor 2023-10-17 08:25:13 +02:00
Mateusz Pusz 18b4d3be33 fix: missing header include added to type_list.h 2023-10-17 08:20:28 +02:00
Mateusz Pusz 9d708c5e39 feat: 💥 mutating interface removed from fixed_string 2023-10-17 08:19:26 +02:00
Mateusz Pusz f4dfdc072e fix: printing of half_high_dot now properly updates the iterator 2023-10-17 08:15:10 +02:00
Mateusz Pusz 556df31590 feat: equality for dimensions now will allow derived classes as well (but not from derived_dimension) 2023-10-15 17:08:19 +02:00
Mateusz Pusz b96be72457 feat: 💥 quantity_point does not provide zero() anymore 2023-10-15 09:39:18 +02:00
Mateusz Pusz fb71971ef0 fix: iterator is now properly updated for all cases in unit_symbol 2023-10-14 11:44:50 +02:00
Mateusz Pusz c9978dd479 refactor: some internal headers moce to the _bits/external_ subdirectory 2023-10-14 11:43:18 +02:00
Mateusz Pusz c75559dd34 docs: "i.e." replaced with "e.g." everywhere in the project 2023-10-10 20:24:23 +02:00
Mateusz Pusz b7e2033d33 refactor: dead code case for units ordering removed 2023-10-09 12:07:09 -06:00
Mateusz Pusz e23f038173 Merge branch 'master' into unit_compose_ext 2023-10-06 23:38:04 +02:00
Mateusz Pusz cb36e39c2a style: formatting fixed to make pre-commit happy 2023-10-06 13:39:51 -06:00
Mateusz Pusz 0d66089853 feat: 💥 inverse() support added for dimensions, quantity_spec, units, and references (1 / s will now create quantity and not a Unit) 2023-10-06 12:53:18 -06:00
Mateusz Pusz fa5419b792 fix: unused parametrs identifiers removed 2023-10-04 10:14:57 -06:00
Mateusz Pusz 25f986d32c fix: MSVC-related fixes and workarounds 2023-10-04 10:00:17 -06:00
Mateusz Pusz 2281be0f76 feat: QuantityLike and QuantityPointLike conversions improved 2023-10-02 21:12:25 -06:00
Mateusz Pusz b12b9f87ae feat: quantity and quantity_point conversion operators now can also convert to const references 2023-09-30 22:23:18 -06:00
Mateusz PuszandJohel Ernesto Guerrero Peña 0999274680 Update src/core/include/mp-units/quantity_point.h
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
2023-09-30 22:23:18 -06:00
Mateusz PuszandJohel Ernesto Guerrero Peña 78bf9a9add Update src/core/include/mp-units/quantity.h
Co-authored-by: Johel Ernesto Guerrero Peña <johelegp@gmail.com>
2023-09-30 22:23:18 -06:00
Mateusz Pusz 5a74cd66ba feat: interoperability with other libraries redesigned 2023-09-30 22:23:18 -06:00
Mateusz Pusz 04588d9c8b feat: Magnitude / Unit operator added 2023-09-30 21:36:23 -06:00
Mateusz Pusz f15baf4c2a fix: clang compilation fixed 2023-09-30 21:35:16 -06:00
Mateusz Pusz b2423bfded feat: quantities can now be multiplied and divided by units 2023-09-29 21:40:24 -06:00