Add missing 'const' qualifiers

This commit is contained in:
Mael Rouxel-Labbé 2020-08-06 08:50:41 +02:00
parent 2375fed008
commit 1c53aea4e2
1 changed files with 2 additions and 2 deletions

View File

@ -25,14 +25,14 @@ struct Array_traits
{
struct Equal_3
{
bool operator()(const Custom_point& p, const Custom_point& q) {
bool operator()(const Custom_point& p, const Custom_point& q) const {
return (p == q);
}
};
struct Less_xyz_3
{
bool operator()(const Custom_point& p, const Custom_point& q) {
bool operator()(const Custom_point& p, const Custom_point& q) const {
return std::lexicographical_compare(p.begin(), p.end(), q.begin(), q.end());
}
};