From 8f8315bccc62cfca4ac0e8dbd996635571f8b818 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Wed, 26 Nov 2025 20:11:30 +0200 Subject: [PATCH] sigh, include type_traits --- rpcs3/util/bless.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/util/bless.hpp b/rpcs3/util/bless.hpp index a1d621d15f..6a097a2c64 100644 --- a/rpcs3/util/bless.hpp +++ b/rpcs3/util/bless.hpp @@ -1,9 +1,11 @@ #pragma once +#include + namespace utils { // Hack. Pointer cast util to workaround UB. Use with extreme care. - template requires requires () { +reinterpret_cast(static_cast(nullptr)); } + template requires (std::is_pointer_v>) [[nodiscard]] inline T* bless(const U& ptr) { #ifdef _MSC_VER @@ -21,3 +23,4 @@ namespace utils #endif } } +