mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user