Should there be a pinned topic with the minimum supported compiler versions


(Andy Bauer) #1

It would be great to have a convenient place to find the minimum compiler versions required for ParaView versions. Right now it kind of looks like GCC is by default at 5.4 since that is the oldest compiler version for the dashboards. I’m getting the following compiler error with GCC 4.8.5:

/home/acbauer/Code/ParaView/ParaView/Qt/Components/pqMultiViewWidget.cxx:124:8: error: no matching function for call to ‘QObject::connect(QPointer&, void (pqHierarchicalGridWidget::)(int, double), pqMultiViewWidget::pqInternals::pqInternals(pqMultiViewWidget)::__lambda5)’
});


(Utkarsh Ayachit) #2

Following patch should fix it:

diff --git a/Qt/Components/pqMultiViewWidget.cxx b/Qt/Components/pqMultiViewWidget.cxx
index bbf206f1a4..04b63677c3 100644
--- a/Qt/Components/pqMultiViewWidget.cxx
+++ b/Qt/Components/pqMultiViewWidget.cxx
@@ -112,7 +112,7 @@ public:
     auto hlayout = new pqHierarchicalGridLayout(this->Container);
     hlayout->setSpacing(PARAVIEW_DEFAULT_LAYOUT_SPACING);

-    QObject::connect(this->Container, &pqHierarchicalGridWidget::splitterMoved,
+    QObject::connect(this->Container.data(), &pqHierarchicalGridWidget::splitterMoved,
       [self](int location, double fraction) {
         if (auto vlayout = self->layoutManager())
         {

here’s the mr