From 101068876c560689a62065f9c5d4bdac8df76f9c Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 5 Dec 2022 16:51:59 -0500 Subject: [PATCH] Fix C++20-incompatible instances of aggregate initialization (#23911) In C++20, types that declare or delete any constructors are no longer aggregates, breaking compilation of many existing uses of aggregate initialization. Fix this for EmberBindingTableEntry by removing the explicitly defaulted constructor. --- src/app/util/types_stub.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/util/types_stub.h b/src/app/util/types_stub.h index 56f15a23efedb4..b0b4aa875ed0c2 100644 --- a/src/app/util/types_stub.h +++ b/src/app/util/types_stub.h @@ -451,8 +451,6 @@ enum */ struct EmberBindingTableEntry { - EmberBindingTableEntry() = default; - static EmberBindingTableEntry ForNode(chip::FabricIndex fabric, chip::NodeId node, chip::EndpointId localEndpoint, chip::EndpointId remoteEndpoint, chip::Optional cluster) {