mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
fix: gcc-12 compilation workaround
This commit is contained in:
@@ -82,11 +82,16 @@ concept ScalableWith = requires(const T v, const S s) {
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
concept Scalar = (!disable_scalar<T>) && requires(const T a, const T b) {
|
||||
{ -a } -> std::common_with<T>;
|
||||
{ a + b } -> std::common_with<T>;
|
||||
{ a - b } -> std::common_with<T>;
|
||||
} && ScalableWith<T, T> && WeaklyRegular<T>;
|
||||
concept Scalar = (!disable_scalar<T>) &&
|
||||
requires(const T a, const T b) {
|
||||
{ -a } -> std::common_with<T>;
|
||||
{ a + b } -> std::common_with<T>;
|
||||
{ a - b } -> std::common_with<T>;
|
||||
} && ScalableWith<T, T>
|
||||
#if MP_UNITS_COMP_GCC != 12
|
||||
&& WeaklyRegular<T>
|
||||
#endif
|
||||
;
|
||||
|
||||
namespace real_impl {
|
||||
|
||||
|
Reference in New Issue
Block a user