Mateusz Pusz
|
a2b1fdd4c8
|
feat: unit conversion operator added to quantity_point
|
2023-05-16 13:44:13 +02:00 |
|
Mateusz Pusz
|
32aa05700b
|
refactor: quantity binary operators are not hidden friends anymore to prevent surprising conversions
|
2023-05-16 13:43:51 +02:00 |
|
Mateusz Pusz
|
929dc72f13
|
fix: compilation-error fixed
|
2023-05-14 21:56:02 +02:00 |
|
Mateusz Pusz
|
eaca8d073a
|
refactor: convertible_to_result renamed to convertible_result
|
2023-05-14 12:58:32 +02:00 |
|
Mateusz Pusz
|
1e28c11cfc
|
refactor: convertible_to(U1, U2) renamed to convertible(U1, U2)
|
2023-05-14 12:43:26 +02:00 |
|
Mateusz Pusz
|
c33e3a584d
|
feat: ReferenceOf concept added
|
2023-05-14 09:35:18 +02:00 |
|
Mateusz Pusz
|
27cd47b7af
|
refactor: implicit conversion on construction allowed for quantity_point if quantity does the same
|
2023-05-11 11:10:52 +02:00 |
|
Mateusz Pusz
|
82b18fc44c
|
feat: is_kind support added to quantity_spec definition
|
2023-05-02 21:39:25 +02:00 |
|
Mateusz Pusz
|
bc63ab23e1
|
refactor: [[nodiscard]] added to functions in type_traits.h
|
2023-05-02 21:35:28 +02:00 |
|
Mateusz Pusz
|
5d6fee2585
|
refactor: quantity refactored + make_quantity() added
|
2023-04-21 15:00:37 +01:00 |
|
Mateusz Pusz
|
237640cad8
|
refactor: ratio refactored to use conteval + _ratio_maths.h_ removed
|
2023-04-21 14:49:51 +01:00 |
|
Mateusz Pusz
|
cc3314903d
|
feat: quantity_spec logic implemented
|
2023-04-21 14:41:33 +01:00 |
|
Mateusz Pusz
|
7ef8193dfc
|
fix: modulo operation logic fixed
|
2023-04-10 19:46:50 +02:00 |
|
Mateusz Pusz
|
ccb06bc0c4
|
fix: CTAD from raw value restored for quantity_point of dimensionless[one]
|
2023-04-10 18:17:34 +02:00 |
|
Mateusz Pusz
|
d65393b4e2
|
refactor: quantity_spec casts functions renamed
|
2023-04-08 19:49:51 +02:00 |
|
Mateusz Pusz
|
40f6ae2da7
|
refactor: quantity refactored + quantity_test updated to reflect and test changes
|
2023-04-05 17:24:08 +02:00 |
|
Mateusz Pusz
|
db2edfb539
|
feat: as_ratio(Magnitude) enabled
|
2023-04-04 14:27:04 +02:00 |
|
Mateusz Pusz
|
660e62c0a6
|
refactor: chrono_test refactored to V2
|
2023-04-03 19:23:08 +02:00 |
|
Mateusz Pusz
|
8e8f17cb96
|
fix: get_equation now calls proper pow() overload
|
2023-04-03 17:45:43 +02:00 |
|
Mateusz Pusz
|
e6eb908503
|
feat: convertible quantity kinds can now be compared
|
2023-04-03 17:44:34 +02:00 |
|
Mateusz Pusz
|
e39555e90d
|
feat: arithmetics on dimensionless quantities extended to units different than one
|
2023-03-30 17:47:47 +02:00 |
|
Mateusz Pusz
|
81949e5ff1
|
refactor: explicit conversion constructors of quantity removed
|
2023-02-14 17:21:54 +01:00 |
|
Mateusz Pusz
|
b7628a1752
|
feat: initial version of quantity_spec conversions implemented
|
2023-02-14 12:28:34 +01:00 |
|
Mateusz Pusz
|
89756c5b74
|
feat: QuantityKindSpec concept support added + some cleanup
|
2023-02-13 18:35:07 +01:00 |
|
Mateusz Pusz
|
dd7c63b242
|
fix: quantity construction fixed in some operators
|
2023-02-13 18:34:00 +01:00 |
|
Mateusz Pusz
|
6b2606a8aa
|
feat: explicit quantity_spec conversion support added to quantity constructor
|
2023-02-13 18:33:19 +01:00 |
|
Mateusz Pusz
|
41043c25f2
|
refactor: base unit definition refactored
|
2023-02-13 18:30:41 +01:00 |
|
Mateusz Pusz
|
0d33926a74
|
feat: specifying an associated quantity for a derived unit support added
|
2023-02-13 18:29:27 +01:00 |
|
Mateusz Pusz
|
1492c5c19e
|
refactor: expr_fractions now takes a class-based type trait
|
2023-02-13 18:23:35 +01:00 |
|
Mateusz Pusz
|
75c3e26a53
|
fix: has_associated_quantity fixed
|
2023-02-13 18:18:08 +01:00 |
|
Mateusz Pusz
|
a37df7504b
|
fix: quantity_cast fixed
|
2023-02-13 18:17:41 +01:00 |
|
Mateusz Pusz
|
195f9c13b9
|
feat: get_common_base() added
|
2023-02-13 18:14:46 +01:00 |
|
Mateusz Pusz
|
a13e627c9f
|
feat: proper support of kinds added to get_associated_quantity()
|
2023-02-13 18:13:41 +01:00 |
|
Mateusz Pusz
|
9436229ed2
|
refactor: the rest of the code refactored for new quantity construction way
|
2023-02-10 17:20:48 -08:00 |
|
Mateusz Pusz
|
a56696ee74
|
feat: leveled quantity specification conversion introduced
|
2023-02-10 17:16:51 -08:00 |
|
Mateusz Pusz
|
17e8558555
|
refactor: operations on friends made hidden friends
|
2023-02-09 09:59:11 -08:00 |
|
Mateusz Pusz
|
d70b95237c
|
refactor: Quantity no longer can be constructed with a raw value
Resolves #434
|
2023-02-09 09:42:00 -08:00 |
|
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
|
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 |
|