Commit Graph

4819 Commits

Author SHA1 Message Date
Mateusz Pusz c3d5fc6dbb docs: non_negative declarations added to quantity_spec in docs
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 21:10:01 +02:00
René Paris df8c264e24 Fix quantity calculation from subtraction to addition 2026-04-28 19:33:36 +02:00
Mateusz Pusz 03e29615da refactor: quantity_point_iface introduced 2026-04-28 15:48:19 +02:00
Mateusz Pusz 0d4c326fa4 refactor: quantity_iface introduced
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 15:26:11 +02:00
Mateusz Pusz 492e4587fe style: code formatting 2026-04-28 11:59:56 +02:00
Mateusz Pusz 1fed23f58c feat(example): bounds removed from equator and coordinates normalization added to position
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 10:51:28 +02:00
Mateusz Pusz 810c5a9c41 docs: quantity point bounds documentation updated
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 10:49:24 +02:00
Mateusz Pusz 7b2603a8ba docs: safe_int documentation improved 2026-04-27 23:28:12 +02:00
Mateusz Pusz 70eadc49ad feat: cross sign and cross error policy comparisons added for safe_int
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 23:27:31 +02:00
Mateusz Pusz d96d977845 style: pre-commit 2026-04-27 18:43:39 +02:00
Mateusz Pusz 86afac81e1 fix: scaling algorithms fixed to work with CNL types
Resolves #791

Co-authored-by: Copilot <copilot@github.com>
2026-04-27 18:40:26 +02:00
Mateusz Pusz 9b1734e319 docs: "Representation Types" chapter contents restored
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 14:37:47 +02:00
Mateusz Pusz 22f292a980 docs: nondimensionalization How-To Guide added
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:15:54 +02:00
Mateusz Pusz eb5dfa62df feat: int128 types are now universally treated as integral on all platforms and safe_int depends on it
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 13:00:04 +02:00
Mateusz Pusz 659738044a feat: safe_int implicit conversions improved and refactored the operators + widening for scaling now preserves sign
Co-authored-by: Copilot <copilot@github.com>
2026-04-26 16:03:09 +02:00
Mateusz Pusz 82304d87c4 style: pre-commit 2026-04-25 22:17:33 +02:00
Mateusz Pusz f664b5909b fix: cstdlib header added to constrained and safe_int to fix freestanding build 2026-04-25 22:14:24 +02:00
Mateusz Pusz 59e0dfe132 fix: custom is_scoped_enum_v implementation provided 2026-04-25 22:06:52 +02:00
Mateusz Pusz 81f8c3398c fix: missing quantity_traits.h added to CMake 2026-04-25 22:05:37 +02:00
Mateusz Pusz 1af417e90d fix: missing quantity_traits.h added to framework.h 2026-04-25 21:07:40 +02:00
Mateusz Pusz 2cce85b513 fix: duplicated definition of wider_int_for removed from scaling.h 2026-04-25 21:06:50 +02:00
Mateusz Pusz e3f8cc0dc4 docs: "Representation types" updated with the latest changes 2026-04-25 21:04:40 +02:00
Mateusz Pusz eb95325c33 feat: 💥 isq::depth removed 2026-04-25 21:03:51 +02:00
Mateusz Pusz 3506de9bf1 docs: GitHub discussion added to the hw_voltage example documentation 2026-04-25 21:01:05 +02:00
Mateusz Pusz 0a33e0a0e6 refactor: quantity point bounds are now specified directly in origin - quantity_bounds_for customization point removed 2026-04-25 21:00:31 +02:00
Mateusz Pusz b9d801dc34 docs: representation types docs improved
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 19:16:22 +02:00
Mateusz Pusz e1b36a09ee refactor: unit_for, reference_for, and rep_for moved to quantity_traits.h
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 18:26:00 +02:00
Mateusz Pusz f26a3e8650 refactor: implicitly_scalable moved from value_cast.h to customization_points.h
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 17:51:01 +02:00
Mateusz Pusz d505da1628 refactor: WeaklyRegular concept moved from customization_points.h to representation_concepts.h
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 17:47:36 +02:00
Mateusz Pusz 08e1645dfe feat: UsesIntegerScaling now properly requires multiplication by a wider type 2026-04-25 12:52:05 +02:00
Mateusz Pusz 6263e2b8c5 feat: representation_underlying_type provided instead of indirectly_readable_traits usage 2026-04-21 22:10:19 +02:00
Mateusz Pusz 589189f3cc docs: location example added to the point bouds article 2026-04-17 23:09:04 +02:00
Mateusz Pusz 7384c7eace docs: bounds checking article updated after Oliver Rostens' feedback 2026-04-17 22:56:43 +02:00
Mateusz Pusz f080c80317 style: pre-commit 2026-04-12 14:15:13 +02:00
Mateusz Pusz fba550b293 style: pre-commit 2026-04-12 14:12:32 +02:00
Mateusz Pusz ad77bcc106 feat: safe_int::operator T made explicit 2026-04-12 14:12:15 +02:00
Mateusz Pusz 9c884f211e fix: explicit constructor for non-convertible types was lost after recent changes 2026-04-12 11:13:20 +02:00
Mateusz Pusz 1fbb410549 docs: safe_int overflow example simplified 2026-04-12 11:12:45 +02:00
Mateusz Pusz e0756a5106 docs: integer overflow article improved after Chip Hogg's feedback 2026-04-12 11:12:15 +02:00
Mateusz Pusz 02f9800493 docs: plain arithmetic overflow example fixed 2026-04-12 11:11:16 +02:00
Mateusz Pusz dca1ccfc80 docs: HEP system description improved 2026-04-11 22:15:55 +02:00
Mateusz Pusz 762a5f8c6a docs: astronomy system reference updated 2026-04-11 21:33:07 +02:00
Mateusz Pusz 4b6eb91a61 fix: safe_int_test fixed for freestanding 2026-04-11 20:57:16 +02:00
Mateusz Pusz bb6a174a9a docs: "Range-Validated Quantity Points" article change to not ciam it is the first library doing so 2026-04-11 20:51:45 +02:00
Mateusz Pusz 5cce146b7b Merge branch 'master' of github.com:mpusz/units 2026-04-11 20:32:48 +02:00
Mateusz Pusz 76a7692180 test: constrained runtime unit tests refactored to SECTIONS 2026-04-11 20:32:39 +02:00
Mateusz Pusz 4b19dc2bf2 docs: simple change in the calulator tutorial source code 2026-04-11 20:31:10 +02:00
Mateusz Pusz 12300bcd23 feat: safe_int and blog article about it added 2026-04-11 20:30:28 +02:00
Mateusz Pusz 19a71c1094 docs: usc system reference updated with origin for degree_Fahrenheit 2026-04-11 19:50:30 +02:00
Mateusz Pusz eb7baf7683 test: additional constrained unit tests added 2026-04-11 19:48:19 +02:00