Commit Graph
448 Commits
Author SHA1 Message Date
Mateusz Pusz 991863594d refactor: ♻️ two pow() overloads merged into one
Also fixes doxygen warnings.
2020-09-08 18:37:29 +02:00
Mateusz Pusz 8c9986dec8 Merge branch 'master' of github.com:mpusz/units 2020-09-08 13:23:36 +02:00
Mateusz Pusz f1bb1910f3 style: Prefix concept still does not work :-( 2020-09-08 13:14:21 +02:00
Mateusz Pusz d8e8a94c5b style: comment changed for has_symbol 2020-09-08 13:13:04 +02:00
Mateusz Pusz 4f0271e6f9 style: 🔥 dead code in customization_points.h removed 2020-09-08 13:11:58 +02:00
Mateusz Pusz f45d1e8286 refactor: [[nodiscard]] added to math funcitons 2020-09-08 13:10:34 +02:00
Mateusz Pusz 4bb51586dc refactor: got rid of gcc-9 backlog
BREAKING CHANGE: gcc-9.3 no longer supported
2020-09-08 13:09:34 +02:00
Mateusz Pusz 7ed4f19ef3 refactor: ♻️ exp_* operations on exponents renamed to `exponent_* 2020-09-08 11:10:33 +02:00
Mateusz Pusz 563b358d5e feat!: 💥 dimensionless quantities refactored
Dimensionless quantities are now represented by quantity types rather
than by plain representation types. Only dimensionless quantities with
`unitless` unit are implicitly convertible from representation types.

`units::exp()` now is a function doing std::exp() on a representation
type (previous `units::exp` class template was renamed to
`units::exponent`).

BREAKING_CHANGE: gcc-9.3 support removed
BREAKING_CHANGE: `exp` and `Exp` renamed to `exponent` and `Exponent`
Resolves #27
Resolves #42
2020-09-08 11:02:16 +02:00
Johel Ernesto Guerrero Peña f83ba6eb39 refactor: remove indirection for further simplification 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña 8fc0c254a6 style: add TODO comment for when to update 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña fac1f582c8 chore: iwyu 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña 9299131174 refactor: simplify is_derived_from_{scaled_unit,base_dimension} 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña 7c00b196a3 refactor: simplify is_derived_from_specialization_of 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña e30aa9c4a0 refactor: simplify is_specialization_of 2020-09-08 09:42:27 +02:00
Johel Ernesto Guerrero Peña db041061e0 chore: iwyu 2020-09-08 09:42:27 +02:00
Mateusz Pusz 0180b34c84 refactor: unknown_coherent_unit moved to the end of a unit.h 2020-09-07 11:12:58 +02:00
Mateusz Pusz 00cb2cd6c3 refactor: cast_ratio now uses quantity_ratio 2020-09-07 11:11:12 +02:00
Johel Ernesto Guerrero Peña 46761ea2f7 refactor: *_instantation_of to *_specialization_of 2020-09-06 22:52:01 +02:00
Mateusz Pusz cacd3ae543 Non-zero denominator contract added for ratio 2020-09-06 15:35:52 +02:00
Mateusz Pusz a02a375dc8 Merge branch 'master' of github.com:mpusz/units 2020-09-06 10:30:05 +02:00
Mateusz Pusz d03d7291e4 Removed cmake/common submodule 2020-09-06 10:29:52 +02:00
Johel Ernesto Guerrero Peña ca1867c9b2 refactor!: pow functions as detail 2020-09-06 09:45:24 +02:00
Johel Ernesto Guerrero Peña 2f5be094b2 refactor: pow10 functions to pow.h 2020-09-06 09:45:24 +02:00
Johel Ernesto Guerrero Peña 40fb1e1e8b fix: iwyu 2020-09-06 09:45:24 +02:00
Mateusz Pusz 32779e01f0 Build system refactored to be comatible with ConanCenter 2020-09-06 00:00:06 +02:00
Mateusz Pusz b318e8d039 VS2019 support added 2020-09-04 23:06:57 +02:00
Mateusz Pusz 71e3dba69a symbol_text refactored 2020-09-04 22:48:36 +02:00
Mateusz Pusz 51ffbadf74 gcc-9.3 compilation fixed 2020-09-04 22:11:24 +02:00
Johel Ernesto Guerrero Peña 1c64e9f4a2 refactor: remove Expects macro 2020-08-24 11:35:58 +02:00
Mateusz Pusz 653a090a8a unknown_dimension simplified 2020-08-18 14:27:33 +02:00
Johel Ernesto Guerrero Peña 530fb41ada docs: add section on quantity points 2020-08-18 08:52:22 +02:00
Johel Ernesto Guerrero Peña 6c5d763fbb refactor: nodiscard to functions 2020-08-18 08:45:13 +02:00
Mateusz Pusz 82baa51708 fmt updated to 7.0.3 2020-08-17 22:07:59 +02:00
Mateusz Pusz d452ec7df5 gsl header replaced with gsl_assert 2020-08-17 21:33:23 +02:00
Mateusz Pusz 51b6d2f974 ms-gsl dependency added to handle Expects (resolves #132) 2020-08-17 20:27:45 +02:00
Johel Ernesto Guerrero Peña 02d5ab8478 refactor: avoid always false comparison 2020-08-16 13:32:30 +02:00
Johel Ernesto Guerrero Peña 67b1c499d1 refactor: avoid always false comparison 2020-08-16 13:32:30 +02:00
Mateusz Pusz deb1ee6efa Truncating conversions disalowed for *=, /=, +=, amd -= operators (resolves #137) 2020-08-16 13:29:40 +02:00
Johel Ernesto Guerrero Peña 69dddaf1f6 feat: nodiscard for postfix increment and decrement 2020-08-16 12:32:56 +02:00
Mateusz Pusz 5cb6d93099 Merge branch 'master' of github.com:mpusz/units 2020-06-29 20:31:47 +02:00
Mateusz Pusz 018d95e935 Dimensions concepts definitions refactored 2020-06-29 20:31:39 +02:00
Mateusz Pusz 9f94a73bba Custom is_same implementation added 2020-06-29 20:30:59 +02:00
Mateusz Pusz 7eccef78a9 is_instantiation renamed to is_instantiation_of 2020-06-29 20:28:10 +02:00
Mike Ford cacbea1d4c corrected copy-paste error in mole definition 2020-06-29 18:46:34 +02:00
Mateusz Pusz d2c66e79f5 angular_velocity support fixed 2020-06-27 19:23:32 +02:00
Mateusz Pusz 9125c1bf2e Merge branch 'master' of github.com:mpusz/units 2020-06-27 19:15:57 +02:00
Mateusz Pusz d171f5451e NTTP ratio support added (resolves #49) 2020-06-27 19:15:46 +02:00
Mike Ford 34df0eb3db trivial reordering 2020-06-27 19:00:46 +02:00
Mike Ford db5a6e9cbd added angular velocity dimension, header file and test in si system 2020-06-27 19:00:46 +02:00