Commit Graph

455 Commits

Author SHA1 Message Date
Mateusz Pusz
2fddb494d3 _t postfix removed from the interface (resolves #9) 2019-10-04 16:22:49 +02:00
Mateusz Pusz
9c436812f5 Documentation cleanup 2019-10-04 08:29:24 +02:00
Mateusz Pusz
7c4e5d086a Merge pull request #17 from jansende/patch-2
Optimized floating point unit conversions
2019-10-01 20:08:01 +02:00
Mateusz Pusz
12200f6f40 operator% constrained to integral types only (resolves #16) 2019-10-01 16:29:42 +02:00
Jan Sende
a11f5a92b6 Optimized floating point unit conversions
- Divisions are now made at compile time.
- Only runtime multiplications are left.
2019-09-30 23:38:33 +02:00
Mateusz Pusz
56679498b7 Conflict between conan and conan_package_tools python packages resolved 2019-09-30 11:29:45 +02:00
Mateusz Pusz
1d476a3f69 Added compile_flags setting to test_package to ensure that the dependency imported with Conan will compile with restrictive warning flags 2019-09-30 11:12:50 +02:00
Mateusz Pusz
7522b8a9fd Minor design documentation changes 2019-09-30 11:08:52 +02:00
Mateusz Pusz
0f803a1c2e Suppressing non-template-friend compilation warning added to Conan 2019-09-30 09:10:38 +02:00
Mateusz Pusz
f373adb42f Not needed static_assert removed from quantity class template 2019-09-30 09:07:15 +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
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