Skip to content

Commit

Permalink
Comparator operator() should be const
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Morrow committed Mar 8, 2013
1 parent bafd5c2 commit a25c25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/dbtests/documentsourcetests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ namespace DocumentSourceTests {
};

struct ValueCmp {
bool operator()(const Value& a, const Value& b) {
bool operator()(const Value& a, const Value& b) const {
return Value::compare( a, b ) < 0;
}
};
Expand Down

0 comments on commit a25c25b

Please sign in to comment.