summaryrefslogtreecommitdiff
path: root/src/mongo/db/field_parser.h
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2013-10-02 17:33:52 -0400
committerAlberto Lerner <alerner@10gen.com>2013-10-02 17:34:01 -0400
commitc5f3e652908f1a6aa906f111c190fec7f7702a27 (patch)
treef1c79d8fb58fd094044919b236cf736bd4c12ff0 /src/mongo/db/field_parser.h
parente0daa0e656c7bf5ad1c7dca806b989795f52814d (diff)
downloadmongo-c5f3e652908f1a6aa906f111c190fec7f7702a27.tar.gz
SERVER-10565 Fix Win64 compile (take 2).
Diffstat (limited to 'src/mongo/db/field_parser.h')
-rw-r--r--src/mongo/db/field_parser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/field_parser.h b/src/mongo/db/field_parser.h
index cbf27544ce8..d814a3cbcd9 100644
--- a/src/mongo/db/field_parser.h
+++ b/src/mongo/db/field_parser.h
@@ -135,6 +135,12 @@ namespace mongo {
T* out,
string* errMsg = NULL);
+ template<typename T>
+ static FieldState extract(BSONObj doc,
+ const BSONField<T*>& field,
+ T** out,
+ string* errMsg = NULL);
+
/**
* Similar to the mandatory 'extract' but on a optional field. '*out' would only be
* allocated if the field is present. The ownership of '*out' would be transferred to