Skip to content
Snippets Groups Projects
Commit 6620d8d0 authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

Add const to bool OCC_Connect::LessThanIntegerSet::operator()

Add return 1 to saveBRep
parent 7ea76245
No related branches found
No related tags found
No related merge requests found
......@@ -112,9 +112,9 @@ static inline std::ostream &operator<<(std::ostream &out, std::set<T> const &a)
}
bool OCC_Connect::LessThanIntegerSet::operator()(std::set<int> const &a,
std::set<int> const &b)
std::set<int> const &b) const
{
std::set<int>::iterator pa=a.begin(), pb=b.begin();
std::set<int>::const_iterator pa=a.begin(), pb=b.begin();
for(; pa!=a.end() && pb!=b.end(); pa++, pb++ ) {
if(*pa<*pb)
return 1;
......@@ -145,6 +145,7 @@ int OCC_Connect::SaveBRep(char const *name)
)
BB.Add(compound,p.First());
BRepTools::Write(compound, (char*)name);
return 1;
}
void OCC_Connect::Dump(ostream &out) const
......
......@@ -38,7 +38,7 @@
////////////////////////////////////////////////////////////////////////////////
class OCC_Connect {
struct LessThanIntegerSet {
bool operator()(std::set<int> const &a, std::set<int> const &b);
bool operator()(std::set<int> const &a, std::set<int> const &b) const;
};
typedef std::map<std::set<int>,std::set<int>,LessThanIntegerSet> mapping_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment