Commit Graph
4122 Commits
Author SHA1 Message Date
Mateusz Pusz a9bcec46c8 fix: static removed from a constexpr variable in a constexpr function as this is supported in C++23 only 2024-09-06 15:56:45 +02:00
Mateusz Pusz 1570bda905 fix: quantity scaling between different prefixes improved
Resolves #608
2024-09-06 12:28:11 +02:00
Mateusz Pusz 7eb9b764bd fix: workarounds for not-working CWG2387 2024-09-05 22:05:35 +02:00
Mateusz Pusz 45013f6752 fix: inline restored for non-template constexpr global variables 2024-09-05 10:06:43 +02:00
Mateusz Pusz 2e840cfdb4 refactor: Repetitive inline constexpr removed as no longer needed
Not needed anymore as stated in cplusplus/draft#4601
2024-09-05 08:43:36 +02:00
Mateusz Pusz 2a4e1e3d95 docs: Rework of "Getting Started" section
Inspired by #603
2024-09-05 08:17:35 +02:00
Jonas Hoppe 93af5db137 [clang-format] 2024-09-04 10:30:39 +02:00
Jonas Hoppe 3174291f95 Merge branch 'master-msvc-194' into master-msvc-194-only-lib 2024-09-04 10:27:41 +02:00
Jonas Hoppe 8be458b0b7 [msvc] remove MP_UNITS_CONSTRAINED_AUTO_WORKAROUND 2024-09-04 10:19:15 +02:00
Jonas Hoppe b05b3796ce [PR] move is_mp_units_stream to detail and change from concept to constexpr function 2024-09-04 09:49:04 +02:00
Jonas Hoppe 712afc34b7 [PR] rename macros to match naming conventions for workaround 2024-09-04 09:37:41 +02:00
Jonas Hoppe d18bb28a25 [PR] remove MP_UNITS_TYPENAME 2024-09-04 09:32:21 +02:00
Jonas Hoppe d1897b1fe9 [PR] change disable error to macro 2024-09-04 09:28:44 +02:00
Jonas Hoppe af077ef3c5 [msvc][fix] revert changes in example and test folder 2024-09-03 13:20:54 +02:00
Jonas Hoppe 61ada08c3b [msvc][conan] update test_package.cpp 2024-09-03 13:20:11 +02:00
Jonas Hoppe 0b0d3345e5 [clang-format] 2024-09-03 13:17:44 +02:00
Jonas Hoppe b5c9dca61f [naming] change some more names 2024-09-03 12:31:19 +02:00
Jonas Hoppe 48c4f297c8 [hacks] add MP_UNITS_IS_CONST_EXPR(from) 2024-09-03 12:27:57 +02:00
Jonas Hoppe a89bfc6c21 [hacks] add MP_UNITS_IS_VALUE 2024-09-03 12:14:42 +02:00
Jonas Hoppe 5ae1304eee [hacks] add MP_UNITS_EXPRESSION 2024-09-03 12:07:08 +02:00
Jonas Hoppe e258009a6a [msvc][fmt] diable warning in smalest scope 2024-09-03 11:27:53 +02:00
Jonas Hoppe 4d715734bf [msvc][fix] update changes for master 2024-09-03 11:27:44 +02:00
Jonas Hoppe 4b61716bb4 💥 [msvc][conan] enable msvc with version 194. 2024-09-03 09:59:29 +02:00
Jonas Hoppe 918a8b7e8f [msvc][fix] parse error in refernce.h. resolved with more brackets. 2024-09-03 09:59:18 +02:00
Jonas Hoppe 3a6fc90c7b [msvc][fix] compiler does not get that expression can be evalutated to a const. (caused by read of variable outside its lifetime) 2024-09-03 09:47:11 +02:00
Jonas Hoppe cea5d70dc0 [msvc][fix] disable C4702 unreachable code 2024-09-03 09:45:41 +02:00
Jonas Hoppe 924782f557 [mscv][fix] weird problem with PO in quantity_point.h. replace with point_origin where needed 2024-09-03 09:45:35 +02:00
Jonas Hoppe 3d32d5d833 [msvc][fix] internal compiler error for requires expression. "simplify" with extra concept 2024-09-03 09:43:38 +02:00
Jonas Hoppe 5e657bac70 [msvc][fix] msvc complains about requires expression (no common type found) replace with concept has_common_type 2024-09-03 09:43:37 +02:00
Jonas Hoppe 464c55538f [msvc][fix] resolve ambigious call to find_first_of 2024-09-03 09:43:37 +02:00
Jonas Hoppe 19e358e56d [mscv][fix] string_view iterator is not castalbe to char 2024-09-03 09:43:37 +02:00
Jonas Hoppe 482150eca1 [msvc][fix] some more errros in examples 2024-09-03 09:43:37 +02:00
Jonas Hoppe 1913fbe344 [msvc][cmake] disable linear_algebra_test.cpp tests because of errors in mdspan 2024-09-03 09:43:37 +02:00
Jonas Hoppe e9ad43a71a [msvc][fix] CTAD for quantity_point does not work. 2024-09-03 09:43:37 +02:00
Jonas Hoppe d491758697 [msvc][fix] return type of chrono_literal "s" is not defined. Is double for msvc 2024-09-03 09:43:37 +02:00
Jonas Hoppe 30ac2882bd [msvc][fix] a lot of brackets where msvc prefers
the type and not the value. (Issue reported)
2024-09-03 09:43:34 +02:00
Jonas Hoppe 5d3ed201b6 [msvc][fix] some short names hide global identifier 2024-09-03 09:42:57 +02:00
Jonas Hoppe aa26488b60 [msvc][fix] msvc compiler has different behaviour for *= and * at compile time (issue reported) 2024-09-03 09:42:57 +02:00
Jonas Hoppe 33837c5042 [msvc][fix] some short names hide global identifier 2024-09-03 09:42:48 +02:00
Jonas Hoppe 72e03f4f59 [msvc][fix] msvc needs explicit namespace for some using-declarations 2024-09-03 09:42:21 +02:00
Mateusz Pusz f0e19d004c fix: the remaining pascal macro conflicts fixed
Resolves #605
2024-08-25 17:31:58 +02:00
Mateusz Pusz 77625d63cb feat: 💥 unit_can_be_prefixed removed - from now on all named units can be prefixed
Resolves #604
2024-08-22 08:06:00 +02:00
Mateusz Pusz aab0ef8ea0 docs: a tip with unit_can_be_prefixed workaround added 2024-08-21 11:17:41 +02:00
Mateusz Pusz ab51b47328 Merge pull request #601 from chiphogg/chiphogg/sqrt-mag#474
Compute values for rational magnitude powers
2024-07-31 05:24:27 +09:00
Mateusz Pusz f983c31eb2 fix: workaround for linking issues on the older clang compilers 2024-07-30 16:07:45 +02:00
Chip Hogg f088d544b3 Fix known errors 2024-07-29 20:43:06 -04:00
Chip Hogg e2829de1c8 Merge branch 'master' into chiphogg/sqrt-mag#474 2024-07-29 20:36:40 -04:00
Mateusz Pusz 0850a200cd fix: import_std setting fixed for clang-tidy 2024-07-29 13:13:51 +02:00
Mateusz Pusz c7c446250d fix: import_std setting fixed 2024-07-29 12:21:36 +02:00
Mateusz Pusz 399c939c4f ci: import_std conan option is now dynamically deduces from other options 2024-07-29 12:01:05 +02:00