aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-12-08 18:13:45 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-01-02 12:27:25 +0100
commit362ab3f84e05c41786e62147d1b4808235949cb3 (patch)
treebe8b5ed2dfd58df1a4b916499fb63cf08bb3e454 /searchlib/src
parent6d7909e022817be11b5f088cbd1e537d9b71919d (diff)
Add missing template keyword when calling templated method with explicit
template parameter.
Diffstat (limited to 'searchlib/src')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_iterator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_iterator.cpp b/searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_iterator.cpp
index 447b870f7ea..2b78fce3625 100644
--- a/searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_iterator.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/nearest_neighbor_iterator.cpp
@@ -36,7 +36,7 @@ public:
NearestNeighborImpl(Params params_in)
: NearestNeighborIterator(params_in),
- _lhs(params().queryTensor.cellsRef().typify<LCT>()),
+ _lhs(params().queryTensor.cellsRef().template typify<LCT>()),
_fieldTensor(params().tensorAttribute.getTensorType()),
_lastScore(0.0)
{
@@ -84,7 +84,7 @@ private:
double computeDistance(uint32_t docId, double limit) {
params().tensorAttribute.getTensor(docId, _fieldTensor);
- return computeSum(_lhs, _fieldTensor.cellsRef().typify<RCT>(), limit);
+ return computeSum(_lhs, _fieldTensor.cellsRef().template typify<RCT>(), limit);
}
ConstArrayRef<LCT> _lhs;