|
|
24b609173d
|
xo-unit: + unit distance constants
|
2024-05-07 10:43:57 -04:00 |
|
|
|
eb050392a2
|
xo-unit: + unit mass constants
|
2024-05-07 10:42:28 -04:00 |
|
|
|
d7ea576d2a
|
xo-unit: scaled_unit: add several milling units [wip]
|
2024-05-07 10:40:50 -04:00 |
|
|
|
df6cfbb25c
|
xo-unit: promote to common repr in mixed-type operator* w/ quantity
Avoid truncating when, for example, multiplying
quantity<Unit, int> * double.
Add targeted unit test for this
|
2024-05-07 10:38:38 -04:00 |
|
|
|
3e86011f51
|
xo-unit: simplify quantity
Always get ratio numerator/denominator type from NaturalUnit
|
2024-05-07 10:35:54 -04:00 |
|
|
|
166276c710
|
xo-unit: add imperial distance units inch/foot/yard/mile
|
2024-05-07 10:31:51 -04:00 |
|
|
|
e4e853acf7
|
xo-unit: cosmetic, formatting
|
2024-05-07 10:07:19 -04:00 |
|
|
|
17519e8408
|
xo-unit: tidy example ex6 + docs
|
2024-05-04 15:24:25 -04:00 |
|
|
|
8d5fcda096
|
xo-unit: quantity: + subtraction operator
|
2024-05-04 15:11:16 -04:00 |
|
|
|
2fe58ef8c8
|
xo-unit: build: use xo_add_executable() for all examples
|
2024-05-04 15:02:59 -04:00 |
|
|
|
17c863893e
|
xo-unit: ex1: use new xo_add_executable() cmake macro
|
2024-05-04 15:01:04 -04:00 |
|
|
|
b5b6485c2c
|
xo-unit: ex6: volatility example with scale conversion
|
2024-05-04 15:00:35 -04:00 |
|
|
|
e09c6670bd
|
xo-unit: minor comment tidy
|
2024-05-04 14:54:15 -04:00 |
|
|
|
6b95d09719
|
xo-unit: bugfix: promote representation accurately in xquantity
|
2024-05-04 14:53:15 -04:00 |
|
|
|
f49cce98b9
|
xo-unit: + quantity.reciprocal()
|
2024-05-04 14:52:52 -04:00 |
|
|
|
cf65def417
|
xo-unit: + 30-day volatility unit, factory function
|
2024-05-04 14:52:19 -04:00 |
|
|
|
cc00ed83a3
|
xo-unit: quantity: + addition for quantities
|
2024-05-04 14:51:46 -04:00 |
|
|
|
9a5def616b
|
xo-unit: bugfix: need handling for power=-1/2
|
2024-05-04 14:50:58 -04:00 |
|
|
|
1b8fabe923
|
xo-unit: doc/example streamlining
|
2024-05-04 12:00:31 -04:00 |
|
|
|
a9c7b696fb
|
xo-unit: ++ docs
|
2024-05-04 11:38:28 -04:00 |
|
|
|
6610193258
|
xo-unit: example: renovate ex4 to use xo::qty::quantity
|
2024-05-04 11:37:58 -04:00 |
|
|
|
cb7bd4d1f2
|
xo-unit: + quantity methods .is_dimensionless(), arith conversion
|
2024-05-04 11:37:24 -04:00 |
|
|
|
779e7e0569
|
xo-unit: + with_units + example
|
2024-05-04 10:36:03 -04:00 |
|
|
|
4ee89948d9
|
xo-unit: streamline with_units_from() using auto
|
2024-05-04 01:50:46 -04:00 |
|
|
|
c5c2f83c90
|
xo-unit: qty::grams() etc. infer quantity::repr_type from argument
|
2024-05-04 01:45:31 -04:00 |
|
|
|
a0d5991d01
|
xo-unit: simplify quantity<> stream inserter
|
2024-05-04 01:35:02 -04:00 |
|
|
|
00245ad378
|
xo-unit: retire stdquantity<> no longer streamlines quantity<>
|
2024-05-03 22:07:05 -04:00 |
|
|
|
591a20c151
|
xo-unit: ex3: simplify
|
2024-05-03 22:06:27 -04:00 |
|
|
|
b39f502c6c
|
xo-unit: refactor: drop default value for NaturalUnit arg
|
2024-05-03 22:05:22 -04:00 |
|
|
|
dc9e7d2f9d
|
xo-unit: drop default value w/ NaturalUnit arg to quantity<..>
|
2024-05-03 22:04:26 -04:00 |
|
|
|
821ed4f56f
|
xo-unit: refactor: rev args to stdquantity<> for consistency
|
2024-05-03 22:03:41 -04:00 |
|
|
|
822d636812
|
xo-unit: refactor: move unit argument to first pos in quantity<>
|
2024-05-03 22:01:31 -04:00 |
|
|
|
862187c69d
|
xo-unit: tidy: remove stray TYPE_INFERENCE_EXPERIMENT debris
|
2024-05-03 21:55:25 -04:00 |
|
|
|
e37340f6c2
|
xo-unit: use auto to elide a template arg to quantity
|
2024-05-03 21:54:11 -04:00 |
|
|
|
844bbca3de
|
xo-unit: doc fixes
|
2024-05-03 21:37:40 -04:00 |
|
|
|
83424e1ee3
|
xo-unit: + repr argument to stdquantity
|
2024-05-03 21:37:22 -04:00 |
|
|
|
4263144614
|
xo-unit: rename scaled_unit o/load of rescale() -> rescale_ext()
|
2024-05-03 21:36:51 -04:00 |
|
|
|
f3e75cc634
|
xo-unit: stop hardwiring representation for a few qty builders
|
2024-05-03 21:35:53 -04:00 |
|
|
|
633c037ba3
|
xo-unit: + with_repr() convenience for xo::qty::quantity
|
2024-05-03 21:34:55 -04:00 |
|
|
|
5078cdd8de
|
xo-unit: rename with_units -> with_units_from
|
2024-05-03 21:33:30 -04:00 |
|
|
|
be8e832481
|
xo-unit: refactor: move quantity_util into detail namespace
|
2024-05-03 21:32:44 -04:00 |
|
|
|
8502b863f2
|
xo-unit: doc improvements to match upgraded ex1, ex2, ex3
|
2024-05-03 18:47:43 -04:00 |
|
|
|
76043fb7cb
|
xo-unit: ex3 using up-to-date compile-time units
|
2024-05-03 18:47:14 -04:00 |
|
|
|
42503feb62
|
xo-unit: + qty::meter, qty::second
|
2024-05-03 18:46:36 -04:00 |
|
|
|
cf9ad4d02e
|
xo-unit: + su::meter, su::second
|
2024-05-03 18:45:54 -04:00 |
|
|
|
dd643109cc
|
xo-unit: streamlined ex2
|
2024-05-03 18:45:37 -04:00 |
|
|
|
90031b2296
|
xo-unit: streamlined ex1
|
2024-05-03 18:45:08 -04:00 |
|
|
|
cfdf380c05
|
xo-unit: move wdith2x helper template to own .hpp file
|
2024-05-03 18:43:35 -04:00 |
|
|
|
b028588877
|
xo-unit: + quantity / quantity
|
2024-05-03 01:43:23 -04:00 |
|
|
|
8f7d60dd21
|
xo-unit: ex1: upgrade to qty::quantity<..> with constexpr units
|
2024-05-03 01:38:21 -04:00 |
|