diff options
Diffstat (limited to 'src/mongo/util/bufreader.h')
-rw-r--r-- | src/mongo/util/bufreader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/bufreader.h b/src/mongo/util/bufreader.h index 74a8b5a319c..c43f3253aeb 100644 --- a/src/mongo/util/bufreader.h +++ b/src/mongo/util/bufreader.h @@ -78,7 +78,7 @@ public: /** read in the object specified, but do not advance buffer pointer */ template <typename T> void peek(T& t) const { - uassertStatusOK(ConstDataRange(_pos, _end).read(&t)); + uassertStatusOK(ConstDataRange(_pos, _end).readInto(&t)); } /** read in and return an object of the specified type, but do not advance buffer pointer */ |