You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace MP_UNITS_CONSTEVAL with constexpr in unit operations
Changes MP_UNITS_CONSTEVAL to constexpr for unit multiplication, division,
and inverse operations in unit.h. This allows these functions to be used
in runtime contexts, which is necessary for DSP applications where unit
calculations may depend on runtime parameters.
Specifically fixes compilation error with clang 21+ where consteval
functions cannot be called in non-constant contexts, such as:
```c++
m_frequency = inverse<si::hertz>(period);
```
0 commit comments