Commit Graph
195 Commits
Author SHA1 Message Date
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
Mateusz Pusz f9d6b53b72 [[nodiscard]] added to quantity_cast and DESIGN.md update with the new quantity_cast functionality 2019-09-30 09:05:50 +02:00
Mateusz Pusz 3b07c51f50 Merge pull request #15 from jansende/patch-1
Made quantity_cast more versatile
2019-09-30 08:55:39 +02:00
Mateusz Pusz 73b5c7c4ac {+a} -> T added to a Number concept 2019-09-30 08:51:45 +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 4b145ea4cf Den != 0 added as a constrain on ratio type 2019-09-27 23:45:45 +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 e5580bcd62 Conan badges updated in README 2019-09-27 09:59:28 +02:00
Mateusz Pusz 1a23d5b69e Invalid todo comment and depdency on std::ratio removed 2019-09-27 09:41:39 +02:00
Mateusz Pusz 00ed8ad83a Missing CMake change added to fix the compilation 2019-09-26 23:08:33 +02:00
Mateusz Pusz fb12fd7672 Open Questions updated 2019-09-26 22:55:18 +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 772df1a5ec List of Open Questions updated 2019-09-18 22:25:52 -06:00
Mateusz Pusz 1c8c0ded77 Changelog updated 2019-09-18 21:59:57 -06:00
Mateusz Pusz c3d7359ca3 units removed from a std::experimental namespace 2019-09-18 21:55:16 -06:00
Mateusz Pusz 6390eba786 Dimensions comparison improved 2019-09-18 21:24:40 -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 48743bf808 Setting CXX flags in conanfile fixed 2019-09-18 11:12:48 -06:00
Mateusz Pusz f5cc0a2f57 gcc compiler flags fixed 2019-09-18 11:04:51 -06:00
Mateusz Pusz de15e21ee5 Version updated to 0.4.0 2019-09-18 10:31:58 -06:00
Mateusz Pusz 929a812ec4 cmcstl2 dependency changed to range-v3 0.9.1 2019-09-18 10:29:30 -06:00
Mateusz Pusz 3fcb7c9e91 dim_invert and dim_consolidate cleanup 2019-09-18 06:37:30 -06:00
Mateusz Pusz 32a65a7405 Support for derived dimensions in exp added 2019-09-18 06:36:52 -06:00
Mateusz Pusz 422c078cb2 Yet another small update to changelog 2019-09-17 07:08:32 -06:00
Mateusz Pusz 4acd38ac8f Small update to a changelog v0.3.0 2019-09-17 06:52:22 -06:00
Mateusz Pusz a04507e961 Documentation update for 0.3.0 2019-09-17 06:46:10 -06:00
Mateusz Pusz 90a7dbe3fa quantity_cast<U, Rep> support added 2019-09-16 00:21:58 -06:00
Mateusz Pusz fc2b1add84 The title of one of the metabench renamed 2019-09-15 20:04:51 -06:00
Mateusz Pusz 9953acb2ab Missing concept added to type_list 2019-09-15 17:33:46 -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 022783df74 Extra typename usage removed from ratio.h 2019-09-13 08:52:22 +02:00
Mateusz Pusz 19e07fd549 Digital information concept added 2019-09-10 22:34:26 +02:00
Mateusz Pusz bebaa5482c QuantityOf concept added 2019-09-10 22:33:54 +02:00
Mateusz Pusz bce17a8476 Fractional dimension exponents support added 2019-09-10 21:20:32 +02:00
Mateusz Pusz 8587d5350d Expects changed to not do anything in a Release build 2019-09-10 20:23:10 +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 70a90b4ae0 config.h support removed as it causes issues with compiler-explorer 2019-09-10 18:59:23 +02:00
Mateusz Pusz dfba6e8f85 Unit check for positive ratio improved 2019-09-09 23:02:07 +02:00
Mateusz Pusz 0e22baa1e9 Check for minimum gcc version fixed in conanfile 2019-09-09 23:00:52 +02:00
Mateusz Pusz be54ae510f cmcstl2 updated to 2019.09.09 2019-09-09 23:00:14 +02:00