summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2022-12-05 22:25:27 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-05 23:49:52 +0000
commit1040c746da55b24f02f3f9715e91c57aeeccc8e6 (patch)
tree293a10b847748e9d16fc8e97a8f3b6b443464ff5 /src/mongo/util
parentdca926506ac48399abba8a764328c43d08b010a6 (diff)
downloadmongo-1040c746da55b24f02f3f9715e91c57aeeccc8e6.tar.gz
SERVER-25823 add bitwise AND, OR, XOR to the agg language
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/safe_num.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/util/safe_num.h b/src/mongo/util/safe_num.h
index 7f16cd036f3..19d281dfc05 100644
--- a/src/mongo/util/safe_num.h
+++ b/src/mongo/util/safe_num.h
@@ -41,6 +41,7 @@ namespace mutablebson {
class Element;
class Document;
} // namespace mutablebson
+class Value;
/**
* SafeNum holds and does arithmetic on a number in a safe way, handling overflow
@@ -156,6 +157,7 @@ public:
friend class mutablebson::Element;
friend class mutablebson::Document;
+ friend class Value;
/**
* Appends contents to given BSONObjBuilder.