Mateusz Pusz
44067dfd19
.clang-format updated to the latest version
2019-10-14 10:50:40 +02:00
Mateusz Pusz
e520355835
Approach updated DESIGN.md
2019-10-08 21:27:35 +02:00
Mateusz Pusz
040c703461
Scalar constraint added for quantity operators
2019-10-08 21:26:18 +02:00
Mateusz Pusz
458ac0918b
Scalar constraint added to quantity constructor
2019-10-08 21:20:37 +02:00
Mateusz Pusz
4ba818bb78
quantity_cast_impl refactored to use compile time branching rather than concepts
2019-10-08 21:20:06 +02:00
Mateusz Pusz
3f8cee0931
Scalar concept constraints reversed
2019-10-08 21:19:04 +02:00
Mateusz Pusz
f5df115acb
.gitattributes added to unify line endings
2019-10-05 08:19:41 +02:00
Mateusz Pusz
f49d48152c
Appveyor tag removed from the README.md
2019-10-05 07:47:14 +02:00
Mateusz Pusz
af0c8c1cdf
Appveyor CI disabled
2019-10-05 07:30:32 +02:00
Jan Sende and i-ky
1d89a251a9
Update README.md
...
Co-Authored-By: i-ky <gl.ivanovsky@gmail.com >
2019-10-04 20:34:37 +02:00
Jan Sende
b9325ce5eb
Fixed LICENSE.md link
2019-10-04 20:34:37 +02:00
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