Mateusz Pusz
dcc2d24c8e
refactor: squared units use *2 now instead of sq_* prefix
2020-09-09 19:53:48 +02:00
Mateusz Pusz
4bfdc60521
chore: invalid unit fixed in a commented out code
2020-09-09 19:21:32 +02:00
Mateusz Pusz
9527b39005
refactor: 💥 q_* UDL renamed to _q_*
...
We had some fun exploring the STD UDLs for potential collisions,
we have learnt our lesson and know how to proceed.
Now is high time to start behaving and obeying C++ rules.
2020-09-09 19:20:35 +02:00
Mateusz Pusz
2b408f19c0
Merge branch 'master' of github.com:mpusz/units
2020-09-09 11:22:58 +02:00
Mateusz Pusz
3e9d5ca189
refactor: ♻️ unitless renamed to one
...
Resolves #27
2020-09-09 11:20:55 +02:00
Johel Ernesto Guerrero Peña
749684c8ee
style: fix name numbering
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
ce583d40e0
style: name parameter after what's being tested
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
2853a20c7f
style: remove empty parameter list
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
9a130d9b5b
test: percent to unitless conversion
2020-09-09 08:53:53 +02:00
Johel Ernesto Guerrero Peña
c842115604
test: dimensionless common type
2020-09-09 08:53:53 +02:00
Mateusz Pusz
9a49df7222
refactor: 💥 Scalar concept renamed to ScalableNumber
...
Resolves #114
2020-09-08 21:17:09 +02:00
Mateusz Pusz
76b6c2972d
test: more unit tests for dimensionless quantity
2020-09-08 18:45:14 +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
Mateusz Pusz
7e2841dcaa
test: Floating-point comparison improved in si_fps_test.cpp
2020-09-07 11:14:00 +02:00
Mateusz Pusz
73636cbb8e
Invalid test removed
2020-09-06 15:36:04 +02:00
Mateusz Pusz
77e11173bf
Unit tests compilation fixed on VS
2020-09-06 15:35:08 +02:00
Johel Ernesto Guerrero Peña
f1f23aa8f9
test: codify comments
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
c09dbb1756
test: add missing explicit specifier
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
4112414729
test: nonzero denominator
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
36046fb6a6
test: simplify case
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
4aeb9d305a
test: what we mean
...
a concept can fail for whatever requirement,
and maybe the "main" one actually works
(== in this case)
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
aff83b31dc
test: codify comment
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
45cf2dcf88
test: remove outdated comment
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
71eda2fc66
test: codify comment in the correct place
2020-09-06 09:55:59 +02:00
Johel Ernesto Guerrero Peña
9f9397ffc2
test: convert comments to code
2020-09-06 09:55:59 +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
deb1ee6efa
Truncating conversions disalowed for *=, /=, +=, amd -= operators ( resolves #137 )
2020-08-16 13:29:40 +02:00
Mateusz Pusz
9f94a73bba
Custom is_same implementation added
2020-06-29 20:30:59 +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
db5a6e9cbd
added angular velocity dimension, header file and test in si system
2020-06-27 19:00:46 +02:00
Johel Ernesto Guerrero Peña
270485e9b6
test: remove redundancy
2020-06-17 15:31:22 +02:00
Johel Ernesto Guerrero Peña
92c6b0d132
test: exclude gcc9 for presumably failing line
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
Mateusz Pusz
54df464b1d
Conversion issues fixed in si_fps_test
2020-06-16 17:42:39 +02:00
Mateusz Pusz
4a46f44618
Merge branch 'master' of github.com:mpusz/units
2020-06-16 17:12:57 +02:00
Mike Ford
8230a42cb0
added some units for the foot-pound-second system and the static tests
2020-06-16 15:14:46 +02:00
Mateusz Pusz
fea072aeb5
warnings.cmake refactored
2020-05-29 10:07:01 +02:00
Mateusz Pusz
86b9177816
Specialize common_type to satisfy comparison concepts ( resolves #113 )
2020-05-28 20:19:05 +02:00
Mateusz Pusz
61fadb8ebc
dim_velocity renamed to dim_speed
2020-05-14 16:00:38 +02:00
Mateusz Pusz
ce301748dd
Velocity renamed to Speed ( resolves #103 )
2020-05-10 17:31:47 +02:00
Mateusz Pusz
7e935a4108
Physical units put in the physical namespace (I am sorry)
2020-05-08 22:39:24 +02:00
Mateusz Pusz
1830735544
Unit tests for alias_unit added
2020-05-08 21:18:16 +02:00
Ramzi Sabra
7b8ad8e37c
changed hectare to an alias_unit
2020-05-08 10:41:38 +02:00
Ramzi Sabra
6f8bddc832
added more prefixed SI units; added alias_unit and prefixed_alias_unit types
2020-05-08 10:41:38 +02:00
Mateusz Pusz
202a2b0823
Missing dimension concepts tests added
2020-05-07 09:25:34 +02:00
Mateusz Pusz
ff21e1e899
GCC 10 compilation fixed
2020-05-05 21:25:56 +02:00