diff --git a/src/ox/std/typetraits.hpp b/src/ox/std/typetraits.hpp index 576e15918..1cc38ddc8 100644 --- a/src/ox/std/typetraits.hpp +++ b/src/ox/std/typetraits.hpp @@ -21,6 +21,10 @@ namespace std { template constexpr bool is_union_v = __is_union(T); +constexpr bool is_constant_evaluated() noexcept { + return __builtin_is_constant_evaluated(); +} + } #endif