diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-04-19 14:36:45 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2022-04-20 09:00:05 +0000 |
commit | 251464f041144bb6bb460e6a92e0de5cc13bfc1f (patch) | |
tree | 45903c3868c4e1c8fb481f8bf0c9a7100caed9a1 /searchcore | |
parent | c044dddbb339560276bff5e84dc2a35c71076b60 (diff) |
Support boolean literals in subexpressions for C++ document selection, not just as expression leaves
Adds a new `BoolValueNode` type and the appropriate AST visiting overloads
for it. For the sake of comparisons, node is treated as a numeric value node
with value in {0, 1}.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp b/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp index 87e9faa4fe2..8555af7c685 100644 --- a/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp +++ b/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp @@ -103,7 +103,7 @@ AttributeFieldValueNode::traceValue(const Context &context, std::ostream& out) c document::select::ValueNode::UP AttributeFieldValueNode::clone() const { - return wrapParens(new AttributeFieldValueNode(getDocType(), getFieldName(), _attr_guard_index)); + return wrapParens(std::make_unique<AttributeFieldValueNode>(getDocType(), getFieldName(), _attr_guard_index)); } } // namespace proton |