Commit Graph

3594 Commits

Author SHA1 Message Date
Mateusz Pusz
7cbbcb5c17 fix: header conflict resulting from a merge fixed 2024-09-19 15:31:59 -06:00
Mateusz Pusz
3a9f09345e style: reformat test_package/conanfile.py 2024-09-19 15:28:09 -06:00
Mateusz Pusz
adbae41175 feat: MP_UNITS_IMPORT_STD and MP_UNITS_MODULES handled properly in test_package.cpp 2024-09-19 15:26:33 -06:00
Mateusz Pusz
64056ee321 build: target_compile_features now uses CMAKE_CXX_STANDARD 2024-09-19 14:50:32 -06:00
Mateusz Pusz
e9284652ab build: target_include_directories is not needed anymore 2024-09-19 14:47:36 -06:00
Mateusz Pusz
f43310585a build: generate() in test_package now correctly propagates project's options 2024-09-19 14:46:43 -06:00
Mateusz Pusz
8e18803083 build: gitpod Dockerfile fixed 2024-09-18 19:41:02 -06:00
Mateusz Pusz
089ce3f9d9 style: pre-commit updated to clang-format-18.1.8 2024-09-17 20:48:05 -06:00
Mateusz Pusz
831c017a22 build: std_format enabled for MSVC 2024-09-17 20:14:57 -06:00
Mateusz Pusz
0c9e62a288 Merge branch 'master' of github.com:mpusz/units 2024-09-17 17:14:26 -06:00
Mateusz Pusz
5305de7a28 docs: "Text Formatting" tag removed from avg_speed example 2024-09-17 17:12:14 -06:00
Mateusz Pusz
7e777f228a fix: hw_voltage compilation fixed on C++20 2024-09-17 17:11:33 -06:00
Mateusz Pusz
3ead7c2d52 feat: hw_voltage example added 2024-09-17 16:12:03 -06:00
Mateusz Pusz
80880f1014 docs: examples line numbers fixed 2024-09-17 16:11:19 -06:00
Mateusz Pusz
7ce8d695b1 test: std::complex-based quantities tests added 2024-09-17 12:48:13 -06:00
Mateusz Pusz
8a68221eb9 Merge pull request #613 from burnpanck/improvement/test-on-arm64
Run test on macOS 14 with upstream clang
2024-09-17 09:27:54 +09:00
Yves Delley
3e502fb795 increase tolerance for certain math tests to two epsilon 2024-09-16 20:34:12 +02:00
Yves Delley
add0a817e2 Merge branch 'mpusz:master' into improvement/test-on-arm64 2024-09-16 20:24:31 +02:00
Yves Delley
747086efce Merge branch 'master' into improvement/test-on-arm64 2024-09-16 17:30:53 +02:00
Mateusz Pusz
910f5d5395 Merge branch 'master' of github.com:mpusz/mp-units 2024-09-15 19:30:23 -06:00
Mateusz Pusz
78efb77b96 style: empty leading line removed from quantity.h 2024-09-15 19:30:13 -06:00
Mateusz Pusz
618b097c42 refactor: value_cast<Rep, U> now reuses value_cast<U, Rep> 2024-09-15 19:29:40 -06:00
Yves Delley
25534c6998 also run conan tests on macOS 14 (again, an example for arm64) 2024-09-15 18:34:28 +02:00
Yves Delley
bd4a61d518 added test for upstream clang on macos-14, as an example for an arm64 platform 2024-09-15 18:24:09 +02:00
Mateusz Pusz
2e96871176 refactor: is_power_of_quantity_spec and is_power_of_dim variable templates converted to concepts 2024-09-14 19:41:43 -06:00
Mateusz Pusz
326837a04a Merge pull request #612 from burnpanck/bugfix/fix-611
Fixes #611
2024-09-15 08:52:16 +09:00
Yves Delley
9ca56f6911 avoid precision loss warning in magnitudes' root; fixes #611 2024-09-14 21:37:00 +02:00
Mateusz Pusz
0670fbdd9f feat: value_cast<Representation, Unit>() complementary conversion function added 2024-09-13 21:38:59 +02:00
Mateusz Pusz
ae816a97fc docs: "Unit symbols" chapter added 2024-09-13 17:07:03 +02:00
Mateusz Pusz
93f41cf499 docs: Compiler Explorer link to basic operations example updated 2024-09-13 10:48:46 +02:00
Mateusz Pusz
866550eefc docs: MSVC compilation announced and its bugs listed on the compiler's conformance page 2024-09-10 21:00:30 +02:00
Mateusz Pusz
3e31067ce4 refactor: has_common_type_v simplified 2024-09-10 18:48:11 +02:00
Mateusz Pusz
8103a4039f fix: std::format does not have to use Char* as iterators 2024-09-10 18:43:19 +02:00
Mateusz Pusz
39d735fb2c Merge pull request #607 from czjhoppe/master-msvc-194-only-lib
[msvc] changes to make library compatible with msvc compiler (194)
2024-09-10 19:52:15 +09:00
Jonas Hoppe
329b17ec8c clang-format 2024-09-10 11:14:45 +02:00
Jonas Hoppe
5ecb6c295a [msvc][fix] add Todo comment for bug
https://developercommunity.visualstudio.com/t/Discrepancy-in-Behavior-of-operator-an/10732445
2024-09-10 11:01:15 +02:00
Jonas Hoppe
4f4da588b1 [msvc][fix] remove MP_UNITS_CONSTRAINED_AUTO_WORKAROUND in example 2024-09-10 10:15:24 +02:00
Jonas Hoppe
0532f41872 Merge branch 'master' into master-msvc-194-only-lib 2024-09-10 10:04:14 +02:00
Jonas Hoppe
413966efca [msvc][fix] revert changes in example and test folder 2024-09-10 10:03:37 +02:00
Jonas Hoppe
f651438f29 [clang-format] 2024-09-10 09:58:05 +02:00
Jonas Hoppe
ee4a7066ca [msvc][fix] remove MP_UNITS_IS_CONST_EXPR_WORKAROUND 2024-09-10 08:56:52 +02:00
Mateusz Pusz
32d4821f4a chore: Dockerfile updated for gitpod 2024-09-09 18:19:16 +00:00
Mateusz Pusz
e792eb303c chore: .gitignore updated to account also for the docs/api_reference/gen symbolic link 2024-09-09 14:39:36 +02:00
Mateusz Pusz
e42e568f44 fix: conversion operator to std::chrono types fixed
Resolves #609
2024-09-09 14:37:22 +02:00
Jonas Hoppe
3da6db7d04 [msvc][fix] remove all unnecessary MP_UNITS_IS_CONST_EXPR_WORKAROUND 2024-09-09 13:35:55 +02:00
Jonas Hoppe
52544678c1 [msvc][fix] add Workaround Macro to conan test-package 2024-09-09 12:37:38 +02:00
Jonas Hoppe
eaed0614ef [msvc][fix][unit.h] move requires before function signature instead of using MP_UNITS_IS_CONST_EXPR_WORKAROUND 2024-09-09 12:29:50 +02:00
Jonas Hoppe
9ce76ede3a [msvc][fix] remvoe MP_UNITS_IS_CONST_EXPR_WORKAROUND in constexpr branches 2024-09-09 12:25:09 +02:00
Jonas Hoppe
aebf55c09a Revert "Merge branch 'master-msvc-194-only-lib' into master-msvc-194"
This reverts commit e3034c5554, reversing
changes made to 8be458b0b7.
2024-09-09 12:10:39 +02:00
Jonas Hoppe
1d0dbf48b1 Merge remote-tracking branch 'mpusz/master' into master-msvc-194 2024-09-09 12:05:19 +02:00