Commit Graph
75 Commits
Author SHA1 Message Date
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 c583f771a2 Todos removed from metabench files 2019-09-27 10:00:19 +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
Mateusz Pusz c3d7359ca3 units removed from a std::experimental namespace 2019-09-18 21:55:16 -06:00
Mateusz Pusz 58106618ac ratio_pow and ratio_sqrt fixed + unit tests added 2019-09-18 18:34:54 -06:00
Mateusz Pusz 2d74b72893 pow() and sqrt() for quantities support added 2019-09-18 17:07:35 -06:00
Mateusz Pusz 021df4a46f dimension_sqrt and dimension_pow support added 2019-09-18 15:32:22 -06:00
Mateusz Pusz 36fd4ba97a Custom derived dimension test refactored to use a new support for extracting derived dimensions 2019-09-18 14:10:26 -06:00
Mateusz Pusz 929a812ec4 cmcstl2 dependency changed to range-v3 0.9.1 2019-09-18 10:29:30 -06:00
Mateusz Pusz 32a65a7405 Support for derived dimensions in exp added 2019-09-18 06:36:52 -06:00
Mateusz Pusz fc2b1add84 The title of one of the metabench renamed 2019-09-15 20:04:51 -06:00
Mateusz Pusz 5413bb865b make_dimension metabench test added 2019-09-15 17:33:20 -06:00
Mateusz Pusz 29e8278613 type_list metabench tests updated 2019-09-15 19:23:56 +02:00
Mateusz Pusz 3801152dc7 ratio metabench tests updated 2019-09-15 19:23:20 +02:00
Mateusz Pusz 19e07fd549 Digital information concept added 2019-09-10 22:34:26 +02:00
Mateusz Pusz bce17a8476 Fractional dimension exponents support added 2019-09-10 21:20:32 +02:00
Mateusz Pusz 497a13da1a Dependency on gsl-lite removed as it causes issues with compiler-explorer 2019-09-10 20:07:48 +02:00
Mateusz Pusz 3bcd80681e base_dimension is provided as a const& to the exp type 2019-09-06 10:16:19 +02:00
Mateusz Pusz ae65407876 Missing change in unit tests committed to fix build errors 2019-08-07 18:34:18 +02:00
Mateusz Pusz 7d70e6b1ce Predefined dimensions moved to a dedicated directory 2019-08-06 10:44:25 +02:00
Mateusz Pusz 9c979fc03a Missing op*() added 2019-08-05 18:22:53 +02:00
Mateusz Pusz b0c4a6c2a8 meter renamed to metre 2019-08-02 17:04:55 +02:00
Mateusz Pusz ce53df71fc Added a few more derived dimensions 2019-07-24 16:55:21 +02:00
Mateusz Pusz 9e74613a4a Leading underscore prefix removed from UDLs 2019-07-24 12:20:06 +02:00
Mateusz Pusz 98203afa29 units moved to std::experimental namespace 2019-07-24 11:58:15 +02:00
Mateusz Pusz eeb4c9c951 Dimension template parameter removed from quantity 2019-07-19 13:49:49 +02:00
Mateusz Pusz 7cbeb35e17 Double sorting of exponents removed 2019-07-18 10:01:42 +02:00
Mateusz Pusz 9c0f2c6878 Custom ratio type implemented 2019-05-28 16:17:48 +02:00
Mateusz Pusz 7bcc5c7b0b common_ratio refactored 2019-05-28 15:01:50 +02:00
Mateusz Pusz c43871578e type_list refactored 2019-05-28 14:35:25 +02:00
Mateusz Pusz cec78ec8cb type_list related tests added to metabench 2019-05-28 14:33:08 +02:00
Mateusz Pusz c3d896e661 Input range for ratio creation changed 2019-05-28 14:31:50 +02:00
Mateusz Pusz 6780978be6 ratio_type_constexpr refactored to provide safe_multiply 2019-05-19 20:38:45 +02:00
Mateusz Pusz 7caadfcd0d Ratio metabench tests split to individual operations 2019-05-19 17:40:05 +02:00
Mateusz Pusz f18b00252b Metabench chart renamed 2019-05-18 12:59:37 +02:00