diff options
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bsonobj.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonobj.h b/src/mongo/bson/bsonobj.h index 69e85b2117d..2faa7c9cc09 100644 --- a/src/mongo/bson/bsonobj.h +++ b/src/mongo/bson/bsonobj.h @@ -33,6 +33,7 @@ #include <list> #include <set> #include <string> +#include <type_traits> #include <utility> #include <vector> @@ -591,6 +592,9 @@ private: ConstSharedBuffer _ownedBuffer; }; +MONGO_STATIC_ASSERT(std::is_nothrow_move_constructible_v<BSONObj>); +MONGO_STATIC_ASSERT(std::is_nothrow_move_assignable_v<BSONObj>); + std::ostream& operator<<(std::ostream& s, const BSONObj& o); std::ostream& operator<<(std::ostream& s, const BSONElement& e); |