forked from qt-creator/qt-creator
fix GCC 10.2.1 arm dynamic containers compile issues
error was: src/plugins/qmldesigner/qmltools/qmlitemnode.cpp:1069:99: required from here src/libs/3rdparty/span/span.hpp:1914:53: error: static assertion failed: tuple_element<I,span>: dynamic extent or index out of range 1914 | static_assert( Extent != nonstd::dynamic_extent && I < Extent, "tuple_element<I,span>: dynamic extent or index out of range" ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Change-Id: I861f53c91746888de8e16d8c54d09c5a60fd2239 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1066,8 +1066,17 @@ QList<QmlConnections> QmlFlowViewNode::getAssociatedConnections(const ModelNode
|
||||
|
||||
auto nodes = view->allModelNodes();
|
||||
|
||||
return CoreUtils::to<QList<QmlConnections>>(Utils::span{nodes} | std::views::transform(convert)
|
||||
| std::views::filter(filter));
|
||||
// std::views as dynamic container has a problem in span-lite - breaks arm GCC 10.2.1
|
||||
// return CoreUtils::to<QList<QmlConnections>>(Utils::span{nodes} | std::views::transform(convert)
|
||||
// | std::views::filter(filter));
|
||||
QList<QmlConnections> connections;
|
||||
for (const auto &n : nodes) {
|
||||
QmlConnections connection = convert(n);
|
||||
if (filter(connection)) {
|
||||
connections.append(connection);
|
||||
}
|
||||
}
|
||||
return connections;
|
||||
}
|
||||
|
||||
} //QmlDesigner
|
||||
|
Reference in New Issue
Block a user