fix for arm64 build failure in linux platform (#32806)
Co-authored-by: sabollim <satyanaag.bollimpalli@silabs.com>
diff --git a/src/platform/Linux/bluez/BluezEndpoint.cpp b/src/platform/Linux/bluez/BluezEndpoint.cpp
index 7cc5814..a416b07 100644
--- a/src/platform/Linux/bluez/BluezEndpoint.cpp
+++ b/src/platform/Linux/bluez/BluezEndpoint.cpp
@@ -621,7 +621,7 @@
auto params = std::make_pair(this, &aDevice);
mConnectCancellable.reset(g_cancellable_new());
return PlatformMgrImpl().GLibMatterContextInvokeSync(
- +[](typeof(params) * aParams) { return aParams->first->ConnectDeviceImpl(*aParams->second); }, ¶ms);
+ +[](decltype(params) * aParams) { return aParams->first->ConnectDeviceImpl(*aParams->second); }, ¶ms);
}
void BluezEndpoint::CancelConnect()