From dcf23f6147624c7eee02f0f9daec48693e319949 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 25 Feb 2018 12:05:17 +0100 Subject: [PATCH] relax ParallelContainer's validateConnectivity() --- core/src/container.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/container.cpp b/core/src/container.cpp index 288b5ca4..c00b8c41 100644 --- a/core/src/container.cpp +++ b/core/src/container.cpp @@ -802,9 +802,10 @@ void ParallelContainerBase::validateConnectivity() const auto impl = pimpl(); InterfaceFlags my_interface = impl->interfaceFlags(); - // check that input / output interfaces of all children match my_interface + // check that input / output interfaces of all children are handled by my interface for (const auto& child : pimpl()->children()) { - if (child->pimpl()->interfaceFlags() != my_interface) + InterfaceFlags current = child->pimpl()->interfaceFlags(); + if ((current & my_interface) != current) errors.push_back(*this, "interface of child '" + child->name() + "' doesn't match mine"); }