mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 09:40:35 +05:00
Fix porting error
This commit is contained in:
parent
0999279092
commit
19933f4ad5
@ -61,10 +61,9 @@ class SMDS_BallElement;
|
||||
#include <NCollection_DataMap.hxx>
|
||||
typedef std::list<const SMESHDS_Hypothesis*> THypList;
|
||||
|
||||
#if OCC_VERSION_LARGE < 0x07080000
|
||||
|
||||
struct SMESHDS_Hasher
|
||||
{
|
||||
#if OCC_VERSION_LARGE < 0x07080000
|
||||
static inline Standard_Boolean IsEqual(const TopoDS_Shape& S1,
|
||||
const TopoDS_Shape& S2)
|
||||
{
|
||||
@ -75,14 +74,20 @@ struct SMESHDS_Hasher
|
||||
{
|
||||
return ::HashCode( S, Upper);
|
||||
}
|
||||
};
|
||||
typedef NCollection_DataMap< TopoDS_Shape, THypList, SMESHDS_Hasher > ShapeToHypothesis;
|
||||
|
||||
#else
|
||||
|
||||
typedef NCollection_DataMap< TopoDS_Shape, THypList > ShapeToHypothesis;
|
||||
|
||||
bool operator()(const TopoDS_Shape& S1, const TopoDS_Shape& S2) const
|
||||
{
|
||||
// for the purpose of ShapeToHypothesis map we don't consider shapes orientation
|
||||
return S1.IsSame(S2);
|
||||
}
|
||||
size_t operator()(const TopoDS_Shape& S) const
|
||||
{
|
||||
return std::hash<TopoDS_Shape>{}(S);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef NCollection_DataMap< TopoDS_Shape, THypList, SMESHDS_Hasher > ShapeToHypothesis;
|
||||
|
||||
class SMESHDS_GroupBase;
|
||||
class DownIdType;
|
||||
|
Loading…
Reference in New Issue
Block a user