diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-04-10 00:08:32 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-04-10 00:08:32 +0200 |
| commit | 083b8d6c846cfdf75abb1fae481a3eeb25c13c56 (patch) | |
| tree | 332ad0b73ee8f4ea1f9bc75d1018d09a473bc60f /src/common | |
| parent | 9c367e2f21f5ce3859e5e7032fb8d564fe1b3bf4 (diff) | |
Core/Misc: Fix build with libc++
Closes #28909
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/Utilities/advstd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/Utilities/advstd.h b/src/common/Utilities/advstd.h index ff2717c9755..5b9991854bf 100644 --- a/src/common/Utilities/advstd.h +++ b/src/common/Utilities/advstd.h @@ -18,9 +18,14 @@ #ifndef TRINITY_ADVSTD_H #define TRINITY_ADVSTD_H +#include <compare> + // this namespace holds implementations of upcoming stdlib features that our c++ version doesn't have yet namespace advstd { +// libc++ is missing these two +[[nodiscard]] constexpr bool is_eq(std::partial_ordering cmp) noexcept { return cmp == 0; } +[[nodiscard]] constexpr bool is_neq(std::partial_ordering cmp) noexcept { return cmp != 0; } } #endif |
