Commit Graph
186 Commits
Author SHA1 Message Date
Chip Hogg 78bcb3b019 Remove troublesome ::ratio members
For some reason, MSVC seems to want to instantiate these, even though
nobody ever asks for them (as evidenced by the fact that the builds
passed on other architectures).
2022-04-12 00:35:17 +00:00
Chip Hogg d19b2803ce Migrate units from ratio to Magnitude
This commit is huge, but hopefully the cognitive load is not too bad.
The bulk of this commit is just some fairly mechanical updates from
`ratio` to `Magnitude`.  Other things to call out:

- `UnitRatio` goes away.  We don't need this concept, because Magnitude
  can't even _represent_ anything that doesn't satisfy it.

- I commented out some formatting test cases where the precise
  expression changes, but the number is completely equivalent.  We will
  need to decide how we want to handle Magnitude formatting as a
  separate, follow-on task.  But at least Magnitude gives us all the
  tools we'll need to do so!
2022-04-11 15:16:16 +00:00
Mateusz Pusz b221dace3f style: clang-format applied to the remaining files 2022-04-02 21:36:42 +02:00
Markus Hofbauer cf7a7ed17a check: run pre-commit on all files 2022-04-02 18:58:23 +02:00
Markus Hofbauer 4c127797da check: run pre-commit on all files 2022-03-18 16:12:21 +01:00
Mateusz Pusz 5668257fe1 build: Conan geerated target renamed to wg21_linear_algebra 2022-02-28 19:23:34 +01:00
Mateusz Pusz 0ce18dc3c7 feat: std::format usage enabled for VS2022 2021-11-15 16:28:26 +01:00
Mateusz Pusz 331024a199 refactor: simplified formatting of latitude and longitude 2021-11-11 07:45:46 +01:00
Mateusz Pusz 3c2b705ded Revert "refactor: got rid of CRTP for latitude and longitude"
This reverts commit 65fed78c98.
2021-11-10 19:45:39 +01:00
Mateusz Pusz 65fed78c98 refactor: got rid of CRTP for latitude and longitude 2021-11-10 19:44:22 +01:00
Mateusz Pusz c950a513a4 refactor: latitude and longitude simplified 2021-11-10 19:02:08 +01:00
Mateusz Pusz 9f95799288 refactor: got rid of FMT_RUNTIME() as it is not the part of C++20 2021-11-08 18:37:37 +01:00
Mateusz Pusz f9fb6cc8b3 build: projectPrefix usage added 2021-11-05 23:35:30 +01:00
Mateusz Pusz 2333c4b3ea build: CMake targets generated by Conan updated 2021-11-04 12:09:54 +01:00
Mateusz Pusz 7d370eb496 refactor: forward_range replaced with input_range 2021-10-15 18:21:26 +02:00
Mateusz Pusz ee70c48b13 build: linear_algebra examples re-enabled on gcc11 2021-10-15 16:14:00 +02:00
Mateusz Pusz ed1b2d2647 fix: Some MSVC-specific special cases removed 2021-09-23 19:16:44 +02:00
Mateusz Pusz b1bd4cab2d feat: std::format support for compliant compilers added 2021-09-20 15:01:58 +02:00
Mateusz Pusz 0a4f99259d Merge branch 'master' of https://github.com/mpusz/units 2021-09-17 13:56:30 +02:00
Mateusz Pusz daa00c2f08 build: linear_algebra examples disabled for gcc-11.1.0 due to ICE 2021-09-17 13:56:27 +02:00
Mateusz Pusz 3a997e5314 fix: explicit fmt usage added 2021-09-17 09:48:33 +02:00
Mateusz Pusz 8740857a47 build: fmt updated to 8.0.1 2021-09-16 20:24:27 +02:00
Mateusz Pusz 1ebf72e041 build: linear algebra switched to wg21-linear_algebra/0.7.2 2021-09-09 09:13:10 +02:00
Mateusz Pusz e6cfd4e69b build: clang-13 support added 2021-08-10 13:54:39 +02:00
Johel Ernesto Guerrero Peña 80eefec97c fix: add quantity_point::origin, like std::chrono::time_point::clock 2021-06-29 20:44:27 +02:00
Mateusz Pusz 7ead50acfc refactor: derived_kind template parameters reordered to be compatible with a derived_unit
Resolves #229
2021-05-10 16:45:38 +02:00
Mateusz Pusz 2c8c6c2e98 refactor: quantity cration helpers are not opt-out rather than opt-in
Resolves #277
2021-05-09 15:52:20 +02:00
Mateusz Pusz ab66455fb1 fix: haversine formula fixed
Resolves #276
2021-05-02 13:03:14 +02:00
Mateusz Pusz 7512e29137 fix: Windows build fixed 2021-04-16 14:55:42 +02:00
Mateusz Pusz 554323d3a6 refactor: conversions part of the custom_systems refactored to be more explicit 2021-04-16 14:41:05 +02:00
Mateusz Pusz 340e62f833 refactor: IWYU 2021-04-16 13:59:41 +02:00
Mateusz Pusz 3c56375e85 refactor: Example updated to benefit from USCS system 2021-04-16 13:01:12 +02:00
Mateusz Pusz 46e1e5e932 refactor: US system renamed to USCS 2021-04-16 12:40:52 +02:00
Mateusz Pusz 70bff31d06 feat: quantity aliases support addded 2021-04-15 19:13:25 +02:00
Mateusz Pusz 813197021f refactor: measurement example moved to a root examples directory 2021-04-15 14:05:36 +02:00
Mateusz Pusz cee27390e6 feat: Formatting support for Kalman related types added 2021-04-14 20:22:20 +02:00
Mateusz Pusz 90af542308 fix: MSVC build fixed 2021-04-13 20:35:11 +02:00
Mateusz Pusz 2d7c3612cd refactor: IWYU 2021-04-13 19:29:35 +02:00
Mateusz Pusz d2a7df6540 fix: clang compilation fixed 2021-04-13 19:28:53 +02:00
Mateusz Pusz 97245a8c96 feat: Kalman Filter tutorials 1-8 added 2021-04-13 18:16:11 +02:00
Mateusz Pusz c545328be7 docs: Added the comment about the reason of ignoring diagnostics in experimental_angle 2021-04-08 12:41:23 +02:00
Mateusz Pusz 9c8deb6187 refactor: capacitor_time_curve refactored for references 2021-04-07 19:09:00 +02:00
Mateusz Pusz e5af317a0a refactor: avg_speed example refactored to better use literals 2021-04-07 19:07:55 +02:00
Mateusz Pusz 8ca2b25349 fix: torque literal fixed + experimental_angle example refactored 2021-04-07 19:07:25 +02:00
Mateusz Pusz dddc7572aa refactor: conversion_factor example moved to the main examples directory 2021-04-07 19:05:02 +02:00
Mateusz Pusz fdc31e7cde refactor: example applications refactored to benefit more from references 2021-04-07 13:56:20 +02:00
Mateusz Pusz 40de14b9b7 refactor: common part of glide_computer moved to a directory 2021-04-07 12:36:39 +02:00
Mateusz Pusz cf14032dce refactor: custom_systems example moved to the parent directory 2021-04-07 11:54:35 +02:00
Mateusz Pusz bd862d3517 refactor: Fine-grained references support added 2021-04-07 11:26:45 +02:00
Mateusz Pusz afa67c5f43 refactor: IWYU 2021-04-06 22:21:45 +02:00