mp-units
mp-units copied to clipboard
The quantities and units library for C++
- downcasting facility - `type_list` operations - `common_ratio` - `measurement` - ...
For now it is really dirty and partial implementation of the framework. The only thing that somehow works for now is the `example/v2_framework.cpp`.
Clang has yet to implement [P0634 - Make typename more optional](https://wg21.link/P0634R3), while GCC has. I presume that is why the following code is in `seal/external/mp-units/core/include/units/bits/external/hacks.h` ```c++ #if UNITS_COMP_MSVC || UNITS_COMP_CLANG...
According to SI Brochure: > The numerical value always precedes the unit and a space is always used to separate the unit from the number. Thus the value of the...
A few parties (including LEWG) were surprised that we have to write `42 * one` to assign a raw value to a `quantity`. See also https://github.com/mpusz/mp-units/issues/497#issuecomment-1936660421. This, of course, is...
As title . I work mainly on embedded systems, which are typically [freestanding](https://en.cppreference.com/w/cpp/freestanding) . Is mp-units going to require a hosted implementation?
Sometimes, people want to deal with quantities of a specific type but with a unit unknown at compile-time. For example, a specific unit might be obtained from some configuration file...
A preview of possible formatting
I had to speed up refactoring, design, and implementation of the V2 design, and because of it plenty of unit tests are missing now. Any help would be appreciated. Here...
Besides the Unicode text output mp-units provides the ability to [output ASCI-only text](https://mpusz.github.io/mp-units/2.2/users_guide/framework_basics/text_output/#unit-symbol-formatting) as well. Standardizing such ASCII-only text output will be hard as ISO and SI standards do not...