From f6dc47f85545dd28fd732b105ac52c53c1ea4e15 Mon Sep 17 00:00:00 2001 From: Kurt Kremitzki Date: Sat, 2 Mar 2019 03:42:57 -0600 Subject: [PATCH] Fixes GCC8 FTBFS due to included copy of SMESH. Last-Updated: 2018-08-10 Gbp-Pq: Name fix_gcc8_ftbfs.patch --- src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx index 14a6d9a7..f81f572f 100644 --- a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx +++ b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx @@ -216,8 +216,8 @@ struct TIDTypeCompare { // WARNING: this comparator makes impossible to store both nodes and elements in the same set // because there are nodes and elements with the same ID. Use TIDTypeCompare for such containers. struct TIDCompare { - bool operator () (const SMDS_MeshElement* e1, const SMDS_MeshElement* e2) const - { return e1->GetID() < e2->GetID(); } + template bool operator () (const T* e1, const T* e2) const + { return static_cast(e1)->GetID() < static_cast(e2)->GetID(); } }; #endif -- 2.30.2