diff options
author | Dwight <dwight@10gen.com> | 2011-06-03 14:01:41 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2011-06-03 14:01:41 -0400 |
commit | 5133061a17bd5b09c5e2650063dae8378740af72 (patch) | |
tree | e99a4d22cf15024d34e9c38ad328f6692c74bfab /bson | |
parent | 303961a9495b2acd7e7d61dd3f276256ae80e089 (diff) | |
download | mongo-5133061a17bd5b09c5e2650063dae8378740af72.tar.gz |
prep for signed dates
Diffstat (limited to 'bson')
-rw-r--r-- | bson/bsonelement.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bson/bsonelement.h b/bson/bsonelement.h index 504b542154a..784bc0d9c04 100644 --- a/bson/bsonelement.h +++ b/bson/bsonelement.h @@ -365,6 +365,7 @@ namespace mongo { return *reinterpret_cast< const mongo::OID* >( start ); } + /** this does not use fieldName in the comparison, just the value */ bool operator<( const BSONElement& other ) const { int x = (int)canonicalType() - (int)other.canonicalType(); if ( x < 0 ) return true; |