Mateusz Pusz
9511995d04
build: find_package() calls don't spell CONFIG explicitly anymore
2024-01-12 12:32:12 +01:00
Mateusz Pusz
5293589900
build: all the targets now set C++20 as the minimum required version
2024-01-08 13:02:02 +01:00
Mateusz Pusz
6914142275
fix: compat_macros included to fix the compilation after rebase
2024-01-06 09:25:17 +01:00
Mateusz Pusz
aaa60e0573
docs: example apllications documentation updated for modules
2024-01-06 08:51:01 +01:00
Mateusz Pusz
a7cb512f87
fix: modules build fixed
2024-01-06 08:51:01 +01:00
Mateusz Pusz
fb8552b1d9
refactor: core-fmt and core-ostream modules merged with core
2024-01-06 08:51:01 +01:00
Mateusz Pusz
4223f813cd
style: CMake file formatting fixed
2024-01-06 08:51:01 +01:00
Mateusz Pusz
271a8117ee
fix: glide-computer compilation with headers fixed
2024-01-06 08:51:01 +01:00
Mateusz Pusz
0eaf6e2e56
refactor: modules support redesigned
2024-01-06 08:51:01 +01:00
Mateusz Pusz
47a5226888
style: formatting and whitespaces fixed to make pre-commit happy
2024-01-06 08:51:01 +01:00
Johel Ernesto Guerrero Peña
7cb2099af5
feat: add module mp_units
2024-01-06 08:51:00 +01:00
Mateusz Pusz
db4a24a197
refactor: MSVC workaround for constrained auto variable
2024-01-05 11:17:36 +01:00
Mateusz Pusz
6324f6dc2a
Merge pull request #522 from mpusz/implicit_point_origin
...
feat: implementation of implicit point origins
2023-12-26 11:09:43 +01:00
Mateusz Pusz
7f0e7f8ca8
refactor: 💥 SI-related trigonometric functions moved to the si subnamespace
2023-12-26 09:31:11 +01:00
Mateusz Pusz
bf51bfc96f
refactor(example): quantity_from_zero() used in exchange_to
2023-12-22 16:42:03 +01:00
Mateusz Pusz
f2abaa28bc
feat: quantity_from_zero() enabled for absolute point origins
2023-12-22 16:41:14 +01:00
Mateusz Pusz
10a2e6dc0d
feat: 💥 initial implementation of implicit point origins
2023-12-21 12:25:09 +01:00
Mateusz Pusz
436463b7a7
feat: value_cast<Unit, Representation> added
2023-12-19 18:19:22 +01:00
Nick Thompson
267db9e2a2
Update minimum cmake version to 3.5
...
Currently, cmake is emitting the following warning:
```
CMake Deprecation Warning at cmake/ccache.cmake:23 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
```
Update the CMake min version to 3.5 to unclutter the build logs and ensure users don't get broken by the deprecation.
2023-12-16 11:51:58 -08:00
Mateusz Pusz
4192e1edea
style: formatting changed to make pre-commit happy
2023-12-08 12:54:36 +01:00
Mateusz Pusz
da8721b997
feat: users are now allowed to inherit their ow types from absolute point origins
2023-12-03 16:15:38 +01:00
Mateusz Pusz
dc4d73a90c
fix(example): fixing compilation after the previous commit
2023-11-08 15:36:06 -10:00
Mateusz Pusz
fe15572e90
feat(example): unit symbols added to the currency example
2023-11-08 15:30:24 -10:00
Mateusz Pusz
98d07b9ed1
feat: 💥 quantity_spec and its kind should not compare equal
2023-10-17 09:45:31 +02:00
Mateusz Pusz
b96be72457
feat: 💥 quantity_point does not provide zero() anymore
2023-10-15 09:39:18 +02:00
Mateusz Pusz
c75559dd34
docs: "i.e." replaced with "e.g." everywhere in the project
2023-10-10 20:24:23 +02:00
Mateusz Pusz
e23f038173
Merge branch 'master' into unit_compose_ext
2023-10-06 23:38:04 +02:00
Mateusz Pusz
0d66089853
feat: 💥 inverse() support added for dimensions, quantity_spec, units, and references (1 / s will now create quantity and not a Unit)
2023-10-06 12:53:18 -06:00
Mateusz Pusz
a32866abcf
Merge branch 'master' of github.com:mpusz/units
2023-10-04 10:09:08 -06:00
Mateusz Pusz
25f986d32c
fix: MSVC-related fixes and workarounds
2023-10-04 10:00:17 -06:00
Mateusz Pusz
00a2bce0e8
fix(example): latitude and longitude fixed to include 0 for N and E respectively
2023-10-03 11:00:33 -06:00
Mateusz Pusz
b2423bfded
feat: quantities can now be multiplied and divided by units
2023-09-29 21:40:24 -06:00
Mateusz Pusz
2e26eed59d
feat: numerical_value_ref_in disallowed for rvalues
2023-09-13 19:59:49 +02:00
Mateusz Pusz
e085beef40
feat: qp.quantity_from(PO) added
2023-09-13 11:57:22 +02:00
Mateusz Pusz
6c576d7120
style: another whitespace removed from the currency example
2023-09-13 11:27:56 +02:00
Mateusz Pusz
414f1d1007
style: additional whitespace removed from conversion_factor example
2023-09-13 11:26:55 +02:00
Mateusz Pusz
a6284aa293
refactor: some value_cast<U>(q) replaced with q.force_in(U)
2023-09-13 10:43:08 +02:00
Mateusz Pusz
2b2f62d038
feat: force_numerical_value_in(U) added
2023-09-13 10:10:10 +02:00
Mateusz Pusz
3b2ca4084a
refactor: quantity_point::quantity_from_origin() refactored to quantity_point::quantity_ref_from(PO)
...
Resolves #479 and relates to #477
2023-09-13 10:09:08 +02:00
Mateusz Pusz
a7711cb301
refactor: quantity::value() refactored to quantity::value_ref_in(U)
2023-09-13 09:23:59 +02:00
Mateusz Pusz
e36fe151ea
refactor(example): storage_tank refactored
2023-09-13 09:01:03 +02:00
Mateusz Pusz
76a9e0ff6e
refactor(example): hello_units refactored to not use auto
2023-09-13 08:58:38 +02:00
Mateusz Pusz
cbcc6f4627
feat: compare.h header added with checks against zero
...
Resolves #487
2023-09-13 08:55:06 +02:00
Mateusz Pusz
42527d2bfb
fix(example): measurement now properly propagates treat_as_floating_point
2023-09-10 14:17:34 +02:00
Mateusz Pusz
d7261c8f76
fix(example): treat_as_floating_point specified for validated_type and ranged_representation
2023-09-04 12:30:14 +02:00
Mateusz Pusz
f0e1e202db
fix: latitude and longitude are now quantity points and have proper formatting
2023-09-04 11:20:00 +02:00
Mateusz Pusz
81698f02e5
feat(example): validated_type now properly registers as a scalar type
2023-09-04 11:16:25 +02:00
Mateusz Pusz
b3fb025053
feat(example): text output added to validated_type and ranged_representation
2023-09-04 11:15:33 +02:00
Mateusz Pusz
0db297ac18
feat(example): the last remaining constant added to si_constants example
2023-08-30 17:39:22 +02:00
Mateusz Pusz
91a93b37db
refactor(example): headers includes simplified in the avg_speed example
2023-08-30 17:38:36 +02:00