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

The quantities and units library for C++

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

This would be to resolve https://github.com/BobSteagall/wg21/issues/36 in this library. The idea is to have a customization point similar to `quantity_like_traits`. It'd be something like `quantity_value_traits`, with a `size` for the...

enhancement

I currently get the following during `mkdir build; cd build; cmake ..` (which is common for most CMake projects): ``` CMake Error at cmake/common/conan.cmake:44 (message): CONAN_PKG::catch2 not found! Please run...

https://mpusz.github.io/units/design/quantity.html#interface

documentation

``` [johel@sundown example]$ In file included from /home/johel/Documents/C++/Forks/mpusz/units/src/src/core/include/units/bits/external/hacks.h:75, from /home/johel/Documents/C++/Forks/mpusz/units/src/src/core/include/units/bits/external/downcasting.h:25, from /home/johel/Documents/C++/Forks/mpusz/units/src/src/core/include/units/bits/basic_concepts.h:25, from /home/johel/Documents/C++/Forks/mpusz/units/src/src/core/include/units/concepts.h:25, from /home/johel/Documents/C++/Forks/mpusz/units/src/src/systems/isq/include/units/isq/dimensions/speed.h:25, from /home/johel/Documents/C++/Forks/mpusz/units/src/src/systems/si/include/units/isq/si/speed.h:25, from linear_algebra.cpp:23: /home/johel/root/gcc/include/c++/11.0.1/bits/stl_function.h: In substitution of ‘template requires !(Quantity) && (invoke_result_convertible_to_) constexpr...

Let's try to `consteval` as much as we can 😉

enhancement

In [Rethinking the Way We Do Templates in C++ even more - Mateusz Pusz [ C++ on Sea 2020 ]](https://youtu.be/aLqtKqS-dFE?t=4318) ([slides](https://raw.githubusercontent.com/philsquared/cpponsea-slides/master/2020/mateusz%20pusz%20-%20Rethinking%20the%20Way%20We%20Do%20Templates%20in%20C%2B%2B%20even%20more/Rethinking%20the%20Way%20We%20Do%20Templates%20in%20C%2B%2B%20even%20more.pdf), pages 174-184), @mpusz presents an interesting problem of unifying...

A custom generator for systems documentation. It should parse the system definition and generate a custom page according to our requirements. The output should list: - dimension definitions - quantities...

help wanted
good first issue
documentation

See https://github.com/mpusz/units/issues/137#issuecomment-755623669.

enhancement

The last assertion fails: ```C++ static_assert(fps::length(1 * cgs_cm) == 1 * cgs_cm); static_assert(std::equality_comparable_with); static_assert(1 * cgs_cm == 1 * cm); static_assert(std::equality_comparable_with); ``` Their common type is not associative because the...