Commit graph

101 commits

Author SHA1 Message Date
0200808f90 xo-unit: utest: test currency() named ctor 2024-06-10 12:04:20 -04:00
c1b7e94e82 xo-unit: + xquantity.rescale_ext() method 2024-05-24 17:54:52 -04:00
412a0ba163 xo-unit: kitchen-sink doc + build improvements + 1 bug fix 2024-05-22 15:16:17 -04:00
21e56e0b1a xo-unit: refactor: simplify flatstring_from_exponents args 2024-05-09 10:35:16 -04:00
8844390090 xo-unit: refactor bu_store ns + expand docs 2024-05-08 23:51:49 -04:00
6ab163b2ea xo-unit: refactor: bpu_store.hpp -> bu_store.hpp for consistency 2024-05-08 16:48:10 -04:00
867132c84c xo-unit: refactor: bpu_store replaces if-then tree for bu abbrevs 2024-05-08 16:34:13 -04:00
7ee9eca0dd xo-unit: tidy: retire OBSOLETE tests 2024-05-08 11:03:02 -04:00
f4c1ef5ee6 xo-unit: + abbrevs + tests for imperial units {in,ft,yd,mi} 2024-05-08 11:02:39 -04:00
5f20b53485 xo-unit: refactor: basis_unit2_abbrev_type -> bu_abbrev_type 2024-05-08 11:02:14 -04:00
5fd6bd3148 xo-unit: refactor: ++ docs 2024-05-07 23:12:04 -04:00
d767675dd9 xo-unit: docs extension 2024-05-07 21:48:48 -04:00
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
9a5def616b xo-unit: bugfix: need handling for power=-1/2 2024-05-04 14:50:58 -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
ca8d5fd235 xo-unit: refactor: Quantity -> xquantity to match filename 2024-05-02 12:02:45 -04:00
a03b932253 xo-unit: fix compiler nits for gcc 13.2 2024-05-01 23:09:28 -04:00
1dd6ac7d80 Merge branch 'main' of github.com:rconybea/xo-unit 2024-05-01 23:07:30 -04:00
eb63f5fdc8 xo-unit: multiply, volatility units, share operators 2024-05-01 23:04:14 -04:00
9b8702e26d xo-unit: rename: Quantity2 -> xquantity filenames only for now 2024-04-30 09:37:21 -05:00
f92371cd9b xo-unit: rename to avoid conflicts on case-insensitive fs 2024-04-30 09:34:05 -05:00
e57ee85a7d xo-unit: rename files to avoid collisions on osx filesystem 2024-04-30 08:40:08 -05:00
eeee5a2a36 xo-unit: builds + runs on darwin 2024-04-29 23:33:17 -05: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
e6ccd09ad7 xo-unit: utest: tidy 2024-04-28 18:46:20 -04:00
9373026960 xo-unit: utest tidy 2024-04-28 18:44:07 -04:00
5f9bbb6648 xo-unit: utest tidy 2024-04-28 18:43:33 -04:00
8c70c0d837 xo-unit: utest tidy 2024-04-28 18:39:43 -04:00
e95a21f83f xo-unit: utest tidy 2024-04-28 18:37:05 -04:00
c5c0ab72ef xo-unit: more utest tidy 2024-04-28 18:31:22 -04:00
21a135f795 xo-unit: utest tidy 2024-04-28 18:23:59 -04:00
e379b9c46f xo-unit: tidy: move exponent-abbrev test to bpu.test.cpp 2024-04-28 16:04:26 -04:00
0f06ac6577 xo-unit: compile-time constexpr unit stalking horse [wip] 2024-04-28 16:02:23 -04:00
bf3abc59f2 xo-unit: test: move natural_unit tests out of unit.test.cpp + tidy 2024-04-28 16:02:00 -04:00
ed842a6172 xo-unit: tidy: bu.test.cpp -> basis_unit.test.cpp 2024-04-28 15:34:43 -04:00
a7af978e50 xo-unit: test: verify natural_unit/scaled_unit is structural type 2024-04-28 15:23:08 -04:00
9350f017b1 xo-unit: utest: + bpu test to verify bpu is structurual type 2024-04-28 15:09:01 -04:00
f535e393e8 xo-unit: + separate basis-unit test 2024-04-28 14:56:32 -04:00