diff options
Diffstat (limited to 'src/mongo/util/uuid.cpp')
-rw-r--r-- | src/mongo/util/uuid.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/util/uuid.cpp b/src/mongo/util/uuid.cpp index e47889a6244..8d7326fd76b 100644 --- a/src/mongo/util/uuid.cpp +++ b/src/mongo/util/uuid.cpp @@ -136,4 +136,11 @@ std::string UUID::toString() const { return ss.str(); } +template <> +BSONObjBuilder& BSONObjBuilderValueStream::operator<<<UUID>(UUID value) { + value.appendToBuilder(_builder, _fieldName); + _fieldName = StringData(); + return *_builder; +} + } // namespace mongo |