Permalink
Browse files

make includes a bit easier to manage

  • Loading branch information...
1 parent a5b8c2b commit f8901bec591369af0a4b4588b3978a5239df657e @erh erh committed Jun 24, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −0 bson/bsonelement.h
  2. +0 −3 bson/oid.h
View
@@ -28,6 +28,11 @@ namespace bson {
namespace mongo {
class OpTime;
+ class BSONElement;
+
+ /* l and r MUST have same type when called: check that first. */
+ int compareElementValues(const BSONElement& l, const BSONElement& r);
+
/** BSONElement represents an "element" in a BSONObj. So for the object { a : 3, b : "abc" },
'a : 3' is the first element (key+value).
View
@@ -119,9 +119,6 @@ namespace mongo {
JS
};
- /* l and r MUST have same type when called: check that first. */
- int compareElementValues(const BSONElement& l, const BSONElement& r);
-
inline ostream& operator<<( ostream &s, const OID &o ) {
s << o.str();
return s;

0 comments on commit f8901be

Please sign in to comment.