summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-02-11 11:43:54 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-02-11 11:43:54 +0000
commite3e77d310e0ca6363a6b4571ca55f85356db60af (patch)
tree33f23d6d3f39a9767abbe4ae33cef41293fc45c5
parentb9e867c4a20e9aa340dbdb110066083ebcc2a619 (diff)
Remove unneeded "template" keyword.
-rw-r--r--searchlib/src/vespa/searchlib/tensor/distance_functions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/distance_functions.h b/searchlib/src/vespa/searchlib/tensor/distance_functions.h
index dabab55dc7a..1e8727e92aa 100644
--- a/searchlib/src/vespa/searchlib/tensor/distance_functions.h
+++ b/searchlib/src/vespa/searchlib/tensor/distance_functions.h
@@ -15,8 +15,8 @@ template <typename FloatType>
class SquaredEuclideanDistance : public DistanceFunction {
public:
double calc(const vespalib::tensor::TypedCells& lhs, const vespalib::tensor::TypedCells& rhs) const override {
- auto lhs_vector = lhs.template typify<FloatType>();
- auto rhs_vector = rhs.template typify<FloatType>();
+ auto lhs_vector = lhs.typify<FloatType>();
+ auto rhs_vector = rhs.typify<FloatType>();
double result = 0.0;
size_t sz = lhs_vector.size();
assert(sz == rhs_vector.size());