diff options
Diffstat (limited to 'src/mongo/bson/oid.cpp')
-rw-r--r-- | src/mongo/bson/oid.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/bson/oid.cpp b/src/mongo/bson/oid.cpp index 92664fd753c..b073c8efa49 100644 --- a/src/mongo/bson/oid.cpp +++ b/src/mongo/bson/oid.cpp @@ -50,6 +50,12 @@ namespace mongo { boost::hash_combine(seed, z); } + size_t OID::Hasher::operator() (const OID& oid) const { + size_t seed = 0; + oid.hash_combine(seed); + return seed; + } + // machine # before folding in the process id OID::MachineAndPid OID::ourMachine; |