Skip to content

Commit

Permalink
fix: mag constraints fixed for clang-17
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Sep 24, 2024
1 parent e23e185 commit ed9e675
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/include/mp-units/framework/magnitude.h
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ template<MagArg auto V>
MP_UNITS_EXPORT_BEGIN

template<MagArg auto V>
#if !(defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 18)
requires detail::gt_zero<detail::get_base_value(V)>
#endif
constexpr Magnitude auto mag = detail::make_magnitude<V>();

template<std::intmax_t N, std::intmax_t D>
Expand Down

0 comments on commit ed9e675

Please sign in to comment.