Skip to content

Commit

Permalink
fix: MP_UNITS_NONCONST_TYPE disabled for gcc-12
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Nov 13, 2024
1 parent 2590aa4 commit f5b9288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/bits/hacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
// workarounds for https://cplusplus.github.io/CWG/issues/2387.html
#define MP_UNITS_INLINE inline

#if __cpp_auto_cast >= 202110L
#if __cpp_auto_cast >= 202110L && MP_UNITS_COMP_GCC != 12
#define MP_UNITS_NONCONST_TYPE(expr) decltype(auto(expr))
#else
#define MP_UNITS_NONCONST_TYPE(expr) std::remove_const_t<decltype(expr)>
Expand Down

0 comments on commit f5b9288

Please sign in to comment.