mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
fix: MP_UNITS_NONCONST_TYPE
disabled for gcc-12
This commit is contained in:
@@ -81,7 +81,7 @@
|
|||||||
// workarounds for https://cplusplus.github.io/CWG/issues/2387.html
|
// workarounds for https://cplusplus.github.io/CWG/issues/2387.html
|
||||||
#define MP_UNITS_INLINE inline
|
#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))
|
#define MP_UNITS_NONCONST_TYPE(expr) decltype(auto(expr))
|
||||||
#else
|
#else
|
||||||
#define MP_UNITS_NONCONST_TYPE(expr) std::remove_const_t<decltype(expr)>
|
#define MP_UNITS_NONCONST_TYPE(expr) std::remove_const_t<decltype(expr)>
|
||||||
|
Reference in New Issue
Block a user