Skip to content

Commit

Permalink
Fix C++20-incompatible instances of aggregate initialization (#23911)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mspang authored and pull[bot] committed Aug 23, 2023
1 parent 2d2a20e commit 1219464
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/util/types_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<chip::ClusterId> cluster)
{
Expand Down

0 comments on commit 1219464

Please sign in to comment.