diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_tree.h')
-rw-r--r-- | src/mongo/db/matcher/expression_tree.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_tree.h b/src/mongo/db/matcher/expression_tree.h index 95536faaa84..9105b0d2b79 100644 --- a/src/mongo/db/matcher/expression_tree.h +++ b/src/mongo/db/matcher/expression_tree.h @@ -175,8 +175,12 @@ namespace mongo { virtual MatchExpression* getChild( size_t i ) const { return _exp.get(); } + MatchExpression* releaseChild(void) { return _exp.release(); } + + void resetChild( MatchExpression* newChild) { _exp.reset(newChild); } + private: - boost::scoped_ptr<MatchExpression> _exp; + std::auto_ptr<MatchExpression> _exp; }; } |