Commit Graph

2717 Commits

Author SHA1 Message Date
Mateusz Pusz
fe70e29bce Create codeql.yml 2023-09-26 13:53:41 +02:00
Mateusz Pusz
b2beac4ac0 ci: clang-17 support disabled until Conan supports it 2023-09-26 13:22:15 +02:00
Mateusz Pusz
28ecc40092 ci: Conan settings.yml file must be created before updating 2023-09-26 13:08:15 +02:00
Mateusz Pusz
6324fe9467 ci: GitHub actions updated to the latest versions 2023-09-26 13:06:32 +02:00
Mateusz Pusz
d9dc374561 build: Conan settings update step moved up 2023-09-26 12:52:51 +02:00
Mateusz Pusz
31f45cee79 ci: workaround for Conan not supporting clang-17 2023-09-26 12:45:51 +02:00
Mateusz Pusz
0ca3ff75ff ci: Clang-17 added to CI 2023-09-26 12:32:51 +02:00
Mateusz Pusz
77cc08ef77 fix: min and max compilation issues resolved 2023-09-26 12:32:26 +02:00
Mateusz Pusz
eaf51c467c Merge branch 'master' of github.com:mpusz/mp-units 2023-09-26 10:37:12 +02:00
Mateusz Pusz
bfbc1785b8 feat: isq::activity added and becquerel definition updated to benefit from it 2023-09-26 10:37:08 +02:00
Mateusz Pusz
b5f966e54f Merge branch 'master' of github.com:mpusz/units 2023-09-25 19:49:42 +02:00
Mateusz Pusz
4a83c66bf4 refactor: clang compile-time errors improved by explicit resolving a type of an using alias 2023-09-25 19:49:35 +02:00
Mateusz Pusz
4bde31ee22 build: mp-units version bumped to 2.1.0 2023-09-24 20:38:10 +02:00
Mateusz Pusz
daf4657375 docs: library versions bumped in the docs v2.0.0 2023-09-24 20:06:07 +02:00
Mateusz Pusz
9a02f902b9 docs: CHANGELOG updated 2023-09-24 19:59:26 +02:00
Mateusz Pusz
80d869e13d docs: workind in one of the comments fixed 2023-09-24 19:43:58 +02:00
Mateusz Pusz
9224fc511a fix: static linkage removed from random functions 2023-09-24 19:34:21 +02:00
Mateusz Pusz
a356db749e docs: inverse() added to "Other maths" chapter 2023-09-20 20:32:59 +02:00
Mateusz Pusz
49da1ced3a refactor: make_reference added and used in constraints for quantity and quantity_point
`quantity_spec[unit]` syntax will not work for natural units and we want the interface to be widely applicable to all domains.
2023-09-20 20:31:49 +02:00
Mateusz Pusz
f9ffacc713 feat: inverse() math utility added
Relates to #268
2023-09-20 20:13:39 +02:00
Mateusz Pusz
becca905e7 Merge pull request #484 from mpusz/mpusz/issue477
Renaming of accessor functions
2023-09-18 10:42:15 +02:00
Mateusz Pusz
b76337d5bb feat: pre-increment and pre-decrement operators now preserve value category 2023-09-14 12:42:45 +02:00
Mateusz Pusz
ff4755d5e5 feat: quantity_ref_from disallowed for rvalues 2023-09-13 20:11:59 +02:00
Mateusz Pusz
2b3c9a6afa feat: quantity_point compound assignment now preserves the value category 2023-09-13 20:06:17 +02:00
Mateusz Pusz
2e26eed59d feat: numerical_value_ref_in disallowed for rvalues 2023-09-13 19:59:49 +02:00
Mateusz Pusz
6a1e600f65 feat: quantity compound assignment now preserves the value category 2023-09-13 19:57:05 +02:00
Mateusz Pusz
6d619d67ef refactor(example): get_magnitude improved for linear algebra 2023-09-13 19:53:32 +02:00
Mateusz Pusz
dc2d0dfca7 feat: force_in(U) added for quantity_point 2023-09-13 18:40:51 +02:00
Mateusz Pusz
f74da4335b refactor: quantity_point::q_ renamed to quantity_from_origin_ 2023-09-13 18:28:49 +02:00
Mateusz Pusz
2e1a017376 refactor: quantity::_value data member renamed to numerical_value_ 2023-09-13 16:21:57 +02:00
Mateusz Pusz
0e974a7f32 fix: hacks for clang-16 compilation added 2023-09-13 12:21:17 +02:00
Mateusz Pusz
e085beef40 feat: qp.quantity_from(PO) added 2023-09-13 11:57:22 +02:00
Mateusz Pusz
75fc3a0384 style: more whitespace issues caused by rebase fixed 2023-09-13 11:56:06 +02:00
Mateusz Pusz
6c576d7120 style: another whitespace removed from the currency example 2023-09-13 11:27:56 +02:00
Mateusz Pusz
414f1d1007 style: additional whitespace removed from conversion_factor example 2023-09-13 11:26:55 +02:00
Mateusz Pusz
2834c571cd docs: "Comparison against zero" chapter added 2023-09-13 11:13:42 +02:00
Mateusz Pusz
bf954cfcaf docs: q.force_in(U) documentation added 2023-09-13 10:44:50 +02:00
Mateusz Pusz
a6284aa293 refactor: some value_cast<U>(q) replaced with q.force_in(U) 2023-09-13 10:43:08 +02:00
Mateusz Pusz
f7f63e8c4c refactor: force_numerical_value_in refactored to use force_in in the implemenation and constraints 2023-09-13 10:41:15 +02:00
Mateusz Pusz
1c7928021d feat: force_in(U) support added 2023-09-13 10:18:07 +02:00
Mateusz Pusz
2b2f62d038 feat: force_numerical_value_in(U) added 2023-09-13 10:10:10 +02:00
Mateusz Pusz
40c809091d fix: numerical_value_ref_in name fixed for this deduction in quantity 2023-09-13 10:10:10 +02:00
Mateusz Pusz
3b2ca4084a refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
Resolves #479 and relates to #477
2023-09-13 10:09:08 +02:00
Mateusz Pusz
a7711cb301 refactor: quantity::value() refactored to quantity::value_ref_in(U) 2023-09-13 09:23:59 +02:00
Mateusz Pusz
c30285ff96 fix: forgot to add compare_test.cpp to CMake 2023-09-13 09:14:45 +02:00
Mateusz Pusz
b7bab8c7e6 refactor: isq::speed_of_light renamed to isq::speed_of_light_in_vacuum 2023-09-13 09:14:20 +02:00
Mateusz Pusz
e36fe151ea refactor(example): storage_tank refactored 2023-09-13 09:01:03 +02:00
Mateusz Pusz
89eba3cd66 docs: additional code example added to the "Value-preserving conversions" chapter 2023-09-13 09:00:21 +02:00
Mateusz Pusz
11a539cabc docs: units composition FAQ cleanup 2023-09-13 08:59:29 +02:00
Mateusz Pusz
76a9e0ff6e refactor(example): hello_units refactored to not use auto 2023-09-13 08:58:38 +02:00