summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-03-04 14:56:31 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-03-08 21:38:41 +0000
commit68c336f802bba1974186c085ee7725a12980e244 (patch)
treef7643db954546be7c3f4e39ae82c40204d4e9f61 /searchlib
parenta2e963dc7794e10653cde50983032badd20fd417 (diff)
Hmm, this was needed to avoid getting unresolved symbol in prod_feature_test on ~VectorBase<string....>.
But only in test.... That is very odd.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/features/dotproductfeature.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/features/dotproductfeature.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/features/dotproductfeature.cpp b/searchlib/src/vespa/searchlib/features/dotproductfeature.cpp
index 394ea6d6dca..7c1a5f2153c 100644
--- a/searchlib/src/vespa/searchlib/features/dotproductfeature.cpp
+++ b/searchlib/src/vespa/searchlib/features/dotproductfeature.cpp
@@ -54,6 +54,8 @@ DotProductExecutor<Vector, Buffer>::execute(uint32_t docId)
outputs().set_number(0, val);
}
+StringVector::~StringVector() { }
+
}
namespace array {
diff --git a/searchlib/src/vespa/searchlib/features/dotproductfeature.h b/searchlib/src/vespa/searchlib/features/dotproductfeature.h
index 1801030acba..d374c028c82 100644
--- a/searchlib/src/vespa/searchlib/features/dotproductfeature.h
+++ b/searchlib/src/vespa/searchlib/features/dotproductfeature.h
@@ -72,6 +72,7 @@ public:
**/
class StringVector : public VectorBase<vespalib::string, const char *, feature_t, ConstCharComparator> {
public:
+ ~StringVector();
void insert(const vespalib::stringref & label, const vespalib::stringref & value) {
_vector.push_back(std::make_pair(label, util::strToNum<feature_t>(value)));
}