From: Kurt Kremitzki Date: Tue, 28 Feb 2023 01:17:57 +0000 (+0000) Subject: Fixes GCC8 FTBFS due to included copy of SMESH. X-Git-Tag: archive/raspbian/0.21.2+dfsg1-3+rpi1~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4062eec2bf88a1a69b5d4cd3bad09ad16808fc8a;p=freecad.git Fixes GCC8 FTBFS due to included copy of SMESH. Last-Updated: 2018-08-10 Gbp-Pq: Name fix_gcc8_ftbfs.patch --- diff --git a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx index ca561328..d97a37bc 100644 --- a/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx +++ b/src/3rdParty/salomesmesh/inc/SMDS_MeshElement.hxx @@ -221,8 +221,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