Skip to content

Commit

Permalink
Fix operator< for CacheKey
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanMalin committed Apr 5, 2016
1 parent 2babd02 commit a6a7fec
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 a6a7fec

Please sign in to comment.