diff --git a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp index a313e91428..0b0fb8be15 100644 --- a/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp +++ b/modules/juce_blocks_basics/topology/juce_PhysicalTopologySource.cpp @@ -2358,7 +2358,8 @@ const char* const* PhysicalTopologySource::getStandardLittleFootFunctions() noex return BlocksProtocol::ledProgramLittleFootFunctions; } -static bool blocksMatch (const Block::Array& list1, const Block::Array& list2) noexcept +template +static bool collectionsMatch (const ListType& list1, const ListType& list2) noexcept { if (list1.size() != list2.size()) return false; @@ -2372,7 +2373,7 @@ static bool blocksMatch (const Block::Array& list1, const Block::Array& list2) n bool BlockTopology::operator== (const BlockTopology& other) const noexcept { - return connections == other.connections && blocksMatch (blocks, other.blocks); + return collectionsMatch (connections, other.connections) && collectionsMatch (blocks, other.blocks); } bool BlockTopology::operator!= (const BlockTopology& other) const noexcept