Skip to content

Commit

Permalink
Merge pull request RainerKuemmerle#104 from GlebKrivovyaz/master
Browse files Browse the repository at this point in the history
Fix operator< for CacheKey
  • Loading branch information
Rainer Kümmerle committed Apr 12, 2016
2 parents 2babd02 + a6a7fec commit 21b7ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g2o/core/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ namespace g2o {
bool Cache::CacheKey::operator<(const Cache::CacheKey& c) const{
if (_type < c._type)
return true;
else if (c._type < _type)
return false;
return std::lexicographical_compare (_parameters.begin( ), _parameters.end( ),
c._parameters.begin( ), c._parameters.end( ) );
}
Expand Down

0 comments on commit 21b7ce4

Please sign in to comment.