Make comparison operator const. (#898)

master
gaschler 2018-02-13 13:03:26 +01:00 committed by Wally B. Feed
parent 7448f93b50
commit b2581b0d58
1 changed files with 2 additions and 1 deletions

View File

@ -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());
} }