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
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
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
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
Mike Ford
d551e089a9
added mil udl
2020-06-25 17:12:31 +02:00
Mike Ford
0f8e4cea3f
added some more lengths to fps system
2020-06-25 17:12:31 +02:00
Mateusz Pusz
f55eacfa85
glide_computer example added
2020-06-21 10:37:45 +02:00
Mateusz Pusz
71c4bc2761
Small quantity_point refactoring
2020-06-19 19:37:52 +02:00
Mateusz Pusz
0c0d097586
C++20 comparison operators refactored
2020-06-19 19:37:18 +02:00
Johel Ernesto Guerrero Peña
dcbadfe285
fix: commented out requirement
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
d6d17c6c6e
refactor: nodiscard to type level
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
ef316a3dba
revert: default-initializing with zero()
...
Refs: 636358f
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
fb88a441c9
fix(gcc9): wrong use of Concepts TS terse syntax
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
5f21106a02
refactor: deduction guide to be unconstrained
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
9e001b4b48
refactor: non-member operators to use terse syntax
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
ead398f812
fix: default-initialize with zero()
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
764176dcad
fix(gcc9): comparisons
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
628ccde5f0
fix: use trailing requires clause
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
75119eef3f
feat: quantity_point
2020-06-17 15:31:22 +02:00
Mike Ford
1cf58f3796
added to fps length, mass, force and pressure
2020-06-17 14:56:32 +02:00
Mateusz Pusz
fb3ab79401
Missing constraints added for prefixed_alias_unit
2020-06-16 19:15:40 +02:00
Mateusz Pusz
169e73e61b
named_deduced_derived_unit renamed to named_deduced_unit
2020-06-16 19:15:09 +02:00