From 71e16bfac3790c462d830f03f735a0f2e6ddd76e Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 1 Mar 2021 00:28:28 +0300 Subject: [PATCH] shared_ptr.hpp: minor fixup --- rpcs3/util/shared_ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/util/shared_ptr.hpp b/rpcs3/util/shared_ptr.hpp index 5a2bb1d456..4a8d7ff8e6 100644 --- a/rpcs3/util/shared_ptr.hpp +++ b/rpcs3/util/shared_ptr.hpp @@ -30,13 +30,13 @@ namespace stx } else if constexpr (std::is_convertible_v) { - const auto u = &sample; + const auto u = std::addressof(sample); const volatile void* x = u; return static_cast(u) == x; } else if constexpr (std::is_convertible_v) { - const auto t = &sample; + const auto t = std::addressof(sample); const volatile void* x = t; return static_cast(t) == x; }