mpusz/mp-units
The Domain-Correct Quantities and Units Library for C++ — full quantity kind safety, ISO 80000 compliant, C++29 standardization candidate. observed · 2026-08-28
Health v2 · maintenance only
75/100
- Activity 99
- Release rhythm 30
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 226.0
- age_days: 2933
- days_rel: 252
- days_push: 8
- n_releases_24m: 3
Adoption not part of the score
1465 stars · 122 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
mp-units is a modern C++20/23/26 library providing compile-time-safe quantities and units of measurement, built on the ISO 80000 International System of Quantities. It offers dimensional analysis, quantity kind safety, and multiple systems of units, and is a candidate for C++29 standardization.
Use cases
- prevent unit conversion bugs like mixing meters and feet at compile time
- perform dimensional analysis in physics or engineering simulations
- represent SI and imperial quantities with type safety in C++
- model domain-specific quantities with quantity kind safety
- convert between units of measurement safely in C++ code
- implement scientific computing code with ISO 80000 compliant quantities
When to choose
- you are writing C++20 or later and need compile-time unit safety
- your project involves physical quantities, engineering, or scientific computing where unit errors are costly
- you want an ISO 80000-compliant, actively maintained units library with Conan/CMake support
- you want to align with the future C++29 standardization effort for quantities and units
When to avoid
- your project is limited to pre-C++20 compilers
- you need a runtime-only or dynamically typed units solution
- you work in a language other than C++
- you need a minimal header with no build system integration and cannot adopt Conan or CMake
Facets
library · maturity active
math type-system developer-tools programming-languages developer-tools simulation cpp cross-platform units-of-measure dimensional-analysis physical-quantities iso-80000 si-units cpp20 cpp23 compile-time-safety conan quantity-manipulation algorithms cmake
2 sources
- readme: https://github.com/mpusz/mp-units · fetched 2026-08-28 · ab9118810543
- homepage: https://mpusz.github.io/mp-units/ · fetched 2026-08-29 · 36c6c3c2e4f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mpusz/mp-units | main | 75 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem