From 521c74fc49b040944d0e78d9cd740203e3436c7c Mon Sep 17 00:00:00 2001 From: squidbus <175574877+squidbus@users.noreply.github.com> Date: Wed, 1 Oct 2025 19:02:09 -0700 Subject: [PATCH] Remove old std::atomic_ref polyfill. --- MarathonRecomp/framework.h | 44 -------------------------------------- 1 file changed, 44 deletions(-) diff --git a/MarathonRecomp/framework.h b/MarathonRecomp/framework.h index b6a4d2e23..96c993058 100644 --- a/MarathonRecomp/framework.h +++ b/MarathonRecomp/framework.h @@ -83,47 +83,3 @@ inline bool strcmpIgnoreCase(const char* a, const char* b) return true; } - -#ifndef __cpp_lib_atomic_ref -// Polyfill for std::atomic_ref -namespace std { -template -class atomic_ref -{ -public: - atomic_ref(value_type& ref) - { - ptr = reinterpret_cast*>(&ref); - } - - void store(value_type desired) - { - ptr->store(desired); - } - - bool compare_exchange_weak(value_type& expected, value_type desired) - { - return ptr->compare_exchange_weak(expected, desired); - } - - void wait(value_type old) - { - ptr->wait(old); - } - - void notify_one() - { - ptr->notify_one(); - } - - bool operator=(const value_type& rhs) - { - store(rhs); - } - -private: - std::atomic* ptr; -}; -} -#endif -