Skip to content
Snippets Groups Projects
Commit fdc99d81 authored by Michael Wedel's avatar Michael Wedel
Browse files

Refs #14121. Forgot to make method const.

parent 828a604e
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ getLatticeSystemFromString(const std::string &latticeSystem);
/// when GCC 4.4 is not used anymore.
struct MANTID_GEOMETRY_DLL CrystalSystemComparator {
bool operator()(const PointGroup::CrystalSystem &lhs,
const PointGroup::CrystalSystem &rhs);
const PointGroup::CrystalSystem &rhs) const;
};
typedef std::multimap<PointGroup::CrystalSystem, PointGroup_sptr,
......
......@@ -327,8 +327,9 @@ getLatticeSystemFromString(const std::string &latticeSystem) {
}
}
bool CrystalSystemComparator::operator()(const PointGroup::CrystalSystem &lhs,
const PointGroup::CrystalSystem &rhs) {
bool CrystalSystemComparator::
operator()(const PointGroup::CrystalSystem &lhs,
const PointGroup::CrystalSystem &rhs) const {
return static_cast<int>(lhs) < static_cast<int>(rhs);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment