diff options
author | Kristina <kristina@10gen.com> | 2012-11-08 16:49:11 -0500 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2012-11-12 11:09:37 -0500 |
commit | 074431815cdfc44ad757675a159e3e51739d1d95 (patch) | |
tree | 54e206b27215cdfd6e9c703b7db563d22ffb92b5 /src/mongo/util/safe_num.h | |
parent | ab9ff1d3ecc7163fc93188efd997bbacd8fe7406 (diff) | |
download | mongo-074431815cdfc44ad757675a159e3e51739d1d95.tar.gz |
SERVER-7172 Add SafeNum support to mutablebson
Diffstat (limited to 'src/mongo/util/safe_num.h')
-rw-r--r-- | src/mongo/util/safe_num.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/util/safe_num.h b/src/mongo/util/safe_num.h index 962a2486133..61667c49d6f 100644 --- a/src/mongo/util/safe_num.h +++ b/src/mongo/util/safe_num.h @@ -23,6 +23,11 @@ namespace mongo { +namespace mutablebson { + class Element; + class Context; +} + /** * SafeNum holds and does arithmetic on a number in a safe way, handling overflow * and casting for the user. 32-bit integers will overflow into 64-bit integers. But @@ -104,8 +109,10 @@ namespace mongo { // output support // + friend class mutablebson::Element; + friend class mutablebson::Context; + // TODO: output to builder - // TODO: output to Paul's class Element // // accessors |