Commit graph

25 commits

Author SHA1 Message Date
74f36ad374 xo-unit: minor doc improvements 2024-05-07 15:29:39 -04:00
22dbb5e529 xo-unit: streamline: rename namespacesu -> u 2024-05-07 15:21:17 -04:00
aad6bd50e8 xo-unit: simplify-api: represent quantity<> unit using scaled_unit<> 2024-05-07 15:07:22 -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
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
be8e832481 xo-unit: refactor: move quantity_util into detail namespace 2024-05-03 21:32:44 -04:00
b028588877 xo-unit: + quantity / quantity 2024-05-03 01:43:23 -04:00
2f9266b6ed xo-unit: utest: + quantity mult tests 2024-05-03 01:37:52 -04:00
be67f55c79 xo-unit: restore constexpr quantity*quantity 2024-05-03 01:37:27 -04:00
6508fd5dc2 xo-unit: refactor: rename quantity2_concept -> quantity_concept 2024-05-02 14:12:03 -04:00
eb63f5fdc8 xo-unit: multiply, volatility units, share operators 2024-05-01 23:04:14 -04:00
d7fa7156df xo-unit: + distance, time compile-time units 2024-04-28 21:52:37 -04:00
ab689b51df xo-unit: + quantity printing + tests for mass units 2024-04-28 19:12:40 -04:00
0f06ac6577 xo-unit: compile-time constexpr unit stalking horse [wip] 2024-04-28 16:02:23 -04:00
70b7df6074 xo-unit: tidy: unused quantity.test.cpp -> mpl_quantity.test.cpp 2024-04-24 12:51:38 -04:00
254846df4b xo-unit: refactor: more files to mpl/ subdir 2024-04-22 15:28:36 -04:00
f8951bfc50 xo-unit: refactor: moving og quantity.hpp to mpl/ subdir 2024-04-22 15:13:40 -04:00
5f2f9cccaa xo-unit: utest: + quantity unit tests for compare 2024-04-17 20:54:22 -04:00
1740a23294 xo-unit: utest: + quantity rescale tests 2024-04-05 01:44:44 -04:00
7c7373427e xo-unit: refactor: c_basis_power<> -> basis_power<> 2024-04-03 17:24:55 -04:00
7e61533caf xo-unit: move types: xo::obs:: -> xo::unit:: 2024-04-02 17:28:15 -04:00
3c1f8389c7 build: move unit+quantity feature from xo-observable -> xo-unit 2024-04-01 19:34:04 -04:00