Mateusz Pusz
33f14f39f3
math_test enabled
2019-12-06 12:56:44 +01:00
Mateusz Pusz
f31b26b5e5
Design cleanup
...
- unknown_unit added
- examples refactored
- base_type renamed to downcast_base_type
- scaled_unit renamed to named_scaled_unit
- detail::reference_unit renamed to scaled_unit
- quantity_test cleanup
2019-12-06 12:18:39 +01:00
Mateusz Pusz
c48bfe2098
quantity refactored and quantity_test enabled
2019-12-04 17:46:19 +01:00
Mateusz Pusz
0986d1e812
dimension_test enabled
2019-12-01 20:00:08 +01:00
Mateusz Pusz
fa9b7db9d5
type_list_test enabled
2019-12-01 19:56:23 +01:00
Mateusz Pusz
1b4e8a2127
Units and dimensions redesigned
2019-12-01 19:47:58 +01:00
Mateusz Pusz
65ea59edbb
digital_information_test renamed to workaround the issue with vscode test explorer
2019-11-28 23:01:06 +01:00
Mateusz Pusz
b9dd6ab440
my_value compilation fixed
2019-11-16 18:29:56 +01:00
Mateusz Pusz
57e464cc99
quantity constraints refactored
2019-11-15 20:20:25 +01:00
Mateusz Pusz
ff656620e9
fmt support for sign added
2019-11-12 19:46:15 +01:00
Mateusz Pusz
6d9cb8197f
fmt fill and allign support added
2019-11-12 16:55:11 +01:00
Mateusz Pusz
83edb46de8
coherent_derived_unit symbol synthetizing fixed
2019-11-10 19:51:25 +01:00
Mateusz Pusz
9a96235e6c
Synthesizing unit symbols in deduced_derived_unit support added ( resolves #13 )
2019-11-10 16:55:16 +00:00
Mateusz Pusz
03e3691d47
More text output tests added
2019-11-09 21:01:37 +00:00
Mateusz Pusz
2328a26992
Downcasting support added to quantity_cast ( resolves #26 )
2019-11-09 14:42:06 +00:00
Mateusz Pusz
0125bd7762
Derived unit factory helpers refactored
2019-11-08 16:51:45 +00:00
Mateusz Pusz
c6d2002ebd
More fmt unit tests added
2019-11-06 22:45:45 +00:00
Mateusz Pusz
615c80e231
Tabulator and new line format string unit tests added
2019-11-06 21:52:48 +00:00
Mateusz Pusz
1b312b1102
fmt support added
2019-11-06 16:50:34 +00:00
Mateusz Pusz
b5b2c54fe8
Basic std::fmt support added
2019-11-05 20:05:11 +00:00
Mateusz Pusz
4d3e4aa1fc
Surface tension added
2019-11-04 06:46:53 +00:00
Mateusz Pusz
91bcfedf1e
Deduced units symbols refactoring started
2019-11-04 06:45:56 +00:00
Mateusz Pusz
e846d40a33
CGS test added
2019-11-02 13:59:11 +01:00
Mateusz Pusz
367c7d5b6e
my_value constructor refactored
2019-11-02 13:58:35 +01:00
Mateusz Pusz
ee701cf4e7
dimension refactoring
2019-11-02 13:56:53 +01:00
Mateusz Pusz
8543ab65d1
pow<0> support added
2019-10-19 20:51:20 +02:00
Mateusz Pusz
53720c82b8
fmt support started
2019-10-18 23:50:43 +02:00
Mateusz Pusz
987ab86439
Added support for prefixes of non-coherent units
2019-10-18 22:36:57 +02:00
Mateusz Pusz
718e56082a
Prefix definition reworked
2019-10-18 21:34:50 +02:00
Mateusz Pusz
b864461636
Prefixed units support redesigned
2019-10-18 15:34:46 +02:00
Mateusz Pusz
f147da202e
Multiply symbot in a printed unit changed to '⋅'
2019-10-17 12:44:39 +02:00
Mateusz Pusz
3e30c779a6
coherent_derived_unit and custom prefixes support added
2019-10-17 10:16:44 +02:00
Mateusz Pusz
9a9abca81d
Text output support added for quantity
2019-10-16 17:04:41 +02:00
Mateusz Pusz
5082aaaf70
'todo' -> 'TODO' refactoring
2019-10-15 19:05:40 +02:00
Mateusz Pusz
d31d2cf439
Base dimensions refactored
...
-
2019-10-15 19:03:45 +02:00
Mateusz Pusz
c3c5a740d9
derived_units now stores a type provided as a template parameter rather than its value
2019-10-15 15:20:37 +02:00
Mateusz Pusz
7e31dfe37e
Name renamed to symbol in a derived_unit
2019-10-15 11:47:36 +02:00
Mateusz Pusz
b889c81cb9
Short name added to derived unit definition
2019-10-15 11:32:59 +02:00
Mateusz Pusz
527927e905
pow<3>() check added to the math uni test
2019-10-15 11:27:39 +02:00
Mateusz Pusz
3475f5193e
Catch2 support added ( resolves #8 )
2019-10-14 10:53:02 +02:00
Mateusz Pusz
2fddb494d3
_t postfix removed from the interface (resolves #9 )
2019-10-04 16:22:49 +02:00
Mateusz Pusz
12200f6f40
operator% constrained to integral types only ( resolves #16 )
2019-10-01 16:29:42 +02:00
Mateusz Pusz
6893ff4efc
common_type<my_value<T>, my_value<U>> used in a unit test refactored
2019-09-30 09:06:42 +02:00
Jan Sende
dc85dd84b9
Made quantity_cast more versatile
...
- One can now change the unit type without changing the representation type.
- One can now change the representation type without changing the unit type.
- Had to implement std::common_type<my_value, my_value> to still compile
integration tests. (It implicitly converted to another representation
before.)
2019-09-30 01:45:38 +02:00
Mateusz Pusz
952b19c2ed
bool removed from concepts definitions as gcc-9.1 supports this syntax already
2019-09-28 19:10:06 +02:00
Mateusz Pusz
ea53c30bf0
A commented code changed in test_custom_unit
2019-09-27 10:00:52 +02:00
Mateusz Pusz
2e1ce83024
Downcasting facility refactored so the user does not have to write the boilerplate code anymore
2019-09-26 22:30:57 +02:00
Mateusz Pusz
ad69f338b8
pow<N>() fixed to work with the integral representations
2019-09-24 16:59:45 +02:00
Mateusz Pusz
0cffcf7849
downcasting_traits renamed to downcast_traits
...
- downcasting_traits -> downcast_traits
- downcasting_traits_t -> downcast_traits_t
- downcast_from -> downcast_base_t
- downcast_to removed
2019-09-20 18:36:14 +02:00
Mateusz Pusz
da11f41529
Unit test for mixed units added
2019-09-18 22:26:30 -06:00