diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_always_boolean.h')
-rw-r--r-- | src/mongo/db/matcher/expression_always_boolean.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/db/matcher/expression_always_boolean.h b/src/mongo/db/matcher/expression_always_boolean.h index ff12bcd1da0..6b7aff966fe 100644 --- a/src/mongo/db/matcher/expression_always_boolean.h +++ b/src/mongo/db/matcher/expression_always_boolean.h @@ -109,6 +109,14 @@ public: bool isTriviallyFalse() const final { return true; } + + void acceptVisitor(MatchExpressionMutableVisitor* visitor) final { + visitor->visit(this); + } + + void acceptVisitor(MatchExpressionConstVisitor* visitor) const final { + visitor->visit(this); + } }; class AlwaysTrueMatchExpression final : public AlwaysBooleanMatchExpression { @@ -128,6 +136,14 @@ public: bool isTriviallyTrue() const final { return true; } + + void acceptVisitor(MatchExpressionMutableVisitor* visitor) final { + visitor->visit(this); + } + + void acceptVisitor(MatchExpressionConstVisitor* visitor) const final { + visitor->visit(this); + } }; } // namespace mongo |