Make comparison operator const. (#898)
parent
7448f93b50
commit
b2581b0d58
|
@ -208,7 +208,8 @@ TEST_F(RandomHybridGridTest, ToProto) {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct EigenComparator {
|
struct EigenComparator {
|
||||||
bool operator()(const Eigen::Vector3i& lhs, const Eigen::Vector3i& rhs) {
|
bool operator()(const Eigen::Vector3i& lhs,
|
||||||
|
const Eigen::Vector3i& rhs) const {
|
||||||
return std::forward_as_tuple(lhs.x(), lhs.y(), lhs.z()) <
|
return std::forward_as_tuple(lhs.x(), lhs.y(), lhs.z()) <
|
||||||
std::forward_as_tuple(rhs.x(), rhs.y(), rhs.z());
|
std::forward_as_tuple(rhs.x(), rhs.y(), rhs.z());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue