mpusz/mp-units
View on GitHub ↗ ★ 1,498 C++
The Domain-Correct Quantities and Units Library for C++ — full quantity kind safety, ISO 80000 compliant, C++29 standardization candidate.
7 mentions on Hacker News by 5 people: 1 story, 6 comments · first 2020-06-24 · latest 2025-02-15
20082026
-
In C++, there are a few very nice libraries for computation with units, e.g.: https://github.com/mpusz/mp-units which does all sorts of checking, allows arithmetic with proper accounting for units and so on. But yes, the basic notion is…
comment by einpoklum · 2025-02-15 · in NASA has a list of 10 rules for software development -
There is indeed a units library [0] aiming for standardisation in C++29. [0] https://github.com/mpusz/mp-units
comment by omnicognate · 2024-07-22 · in What's the point of std:monostate? You can't do anything with it -
…not sure the Chicago reference but if you’re talking about C++ the Units library is a good option. https://github.com/mpusz/units
comment by wirthjason · 2022-11-05 · in The type system is a programmer's best friend -
…helpful for kalman filters and other stuff where you have heterogeneous units in one vector. [0] https://github.com/mpusz/units [1] "Daniel Withopf - Physical Units for Matrices. How hard can it be? - Meeting C++ 2021"…
comment by jeffreygoesto · 2022-03-21 · in Please put units in names -
▲ 1
Compile-time C++ library for compile-time dimensional analysis, units/quantitiesstory by jeffreygoesto · 2022-03-21 · 0 comments
-
…working with physicial quantities in C++ there are also [0] https://github.com/nholthaus/units [1] https://github.com/mpusz/units
comment by jeffreygoesto · 2020-06-24 · in Ask HN: How to avoid over-engineering software design for future use cases?