From b078bd42af094b3b2c76f97e8be2ec4c6b35e3ed Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 5 Dec 2022 12:02:01 -0500 Subject: [PATCH] Fix C++20-incompatible instances of aggregate initialization 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) {