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
761919c1be
feat: added new SI prefixes based on CGPM 2022 Resolution 3
2023-02-09 11:25:18 -08:00
Mateusz Pusz
6794485b02
refactor: small cleanup of IEC 80000 definitions
2023-02-09 10:02:58 -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
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
8e61286548
docs: "Terms and Definitions" added to README
2023-02-04 08:28:29 +01: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
c86359f37e
docs: simple documentation typo fixed to trigger a documentation build in CI
2023-02-02 10:23:49 +01:00
Mateusz Pusz
749ec8d379
build: enable CMake configuration files generation for doxygen in a new Conan version
2023-02-02 10:21:58 +01:00
Mateusz Pusz
03eeea172a
Merge pull request #431 from aostrowski/fix-isort
...
Update isort to work around build from source bug
2023-02-01 22:42:29 +01:00
Adrian Ostrowski
e6227c36fb
Update isort to work around build from source bug
...
A Poetry update broke isort: https://github.com/PyCQA/isort/issues/2077
The bug occurs when building from source, which is what pre-commit does.
The latest version of isort fixes this issue.
2023-02-01 22:38:03 +01:00
Mateusz Pusz
6030b2e4e4
Merge branch 'master' of github.com:mpusz/units
2023-02-01 21:03:56 +01:00
Mateusz Pusz
48d11cce8a
docs: Compiler Explorer examples compilation fixed
2023-02-01 21:03:44 +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
d35e9e33b8
Merge pull request #424 from chiphogg/chiphogg/badge
...
Fix badge image links
2023-01-14 21:12:40 +01:00
Chip Hogg
712a38eda6
Fix badge image links
...
For background, see: https://github.com/badges/shields/issues/8671
2023-01-14 14:11:21 +00:00
Mateusz Pusz
3a4eb9143c
Merge pull request #420 from Twon/update_codeql_cachekey
...
Update codeql cachekey
2023-01-07 12:21:40 +01:00
Antony Peacock
cfb4614fb6
Remove whitespace
2023-01-07 10:27:38 +00:00