[cpp23] Remove usage of std::aligned_storage in nearby

Deprecated in C++23. Details in https://crbug.com/388068052.

PiperOrigin-RevId: 722745132
This commit is contained in:
hai007
2025-02-03 12:02:21 -08:00
committed by Copybara-Service
parent e76adeab50
commit 97690c6996
4 changed files with 16 additions and 36 deletions
@@ -137,7 +137,7 @@ MurocDefs::INTEL_CALLBACK g_intel_event_cb_handle = {IntelEventHandler,
#endif
WifiIntel& WifiIntel::GetInstance() {
static std::aligned_storage_t<sizeof(WifiIntel), alignof(WifiIntel)> storage;
alignas(WifiIntel) static char storage[sizeof(WifiIntel)];
static WifiIntel* instance = new (&storage) WifiIntel();
return *instance;
}