mp-units icon indicating copy to clipboard operation
mp-units copied to clipboard

The quantities and units library for C++

Results 121 mp-units issues
Sort by recently updated
recently updated
newest added

Hello all, First of all, I would like to say that this is a very practical and powerful library that will hopefully save us many bugs in the future. However,...

Partially addresses #7. This should at least serve as a base for modules support in MSVC, according to https://www.reddit.com/r/cpp/comments/tgvgtp/c_modules_in_cmake_with_visual_studio/. I tried making the downcasting facility work, to no avail. So...

An example at https://mpusz.github.io/units/use_cases/unknown_dimensions.html includes: ```C++ constexpr auto result = 144 * km / (2 * h); static_assert(std::is_same_v); static_assert(std::is_same_v); ``` Error messages containing unknown units could be improved if instead...

Modules: 1. Framework 2. IO 4. Systems (one submodule per system) - dimensions (one submodule per dimension) Framework types that should not be explicitly used by the user (i.e. `dimension`,...

enhancement

@mpusz This is a draft running the pre-commit check for clang format 15 in the CI. Right now the check fails, since I did not apply the changes so far....

This second assertion fails: ```C++ #include "units/physical/si/cgs/base/length.h" using namespace units; namespace si = physical::si; using namespace si; using namespace unit_constants; constexpr auto cgs_cm = cgs::unit_constants::cm; static_assert(length(1 * cgs_cm) == 1...

One of the provisions of https://eel.is/c++draft/namespace.std#2 is > that (a) the added declaration depends on at least one program-defined type A template specialization of the form ```C++ template struct std::something;...

Following the changes introduced by [P1754R1](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1754r1.pdf) to the concepts library in C++20, consider renaming all concepts to `standard_case`, for consistency.

help wanted
iso
design

During his great CppCon talk @chiphogg among others raised an additional overflow policy that might be interesting for additionally guarding integral representation types: `CanScale1000WithoutOverflow`.

enhancement
iso
design

The same issue at https://github.com/ericniebler/range-v3/issues/1271 will happen here, if `mp-units` hopefully makes it to the Standard. Because the library will be proposed in parts, and not everything will be standardized,...

refactor