summaryrefslogtreecommitdiffstats
path: root/slobrok
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-08-23 12:10:09 +0200
committerTor Egge <Tor.Egge@online.no>2021-08-23 12:10:09 +0200
commit2041eefbd9ee66c06a33ba09fb6ee5f01ca7353a (patch)
treea471c94b9fa5508b2a1f3c7702b98524b6b15f5e /slobrok
parentf706101a1260e2a61bdedbe530d812457c6a55b1 (diff)
Fix forward declaration.
Add constructors.
Diffstat (limited to 'slobrok')
-rw-r--r--slobrok/src/vespa/slobrok/server/union_service_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/slobrok/src/vespa/slobrok/server/union_service_map.h b/slobrok/src/vespa/slobrok/server/union_service_map.h
index 79c34ed908e..f5e628a58bc 100644
--- a/slobrok/src/vespa/slobrok/server/union_service_map.h
+++ b/slobrok/src/vespa/slobrok/server/union_service_map.h
@@ -20,6 +20,12 @@ private:
struct CountedSpec {
vespalib::string spec;
size_t count;
+ CountedSpec(const vespalib::string &spec_in,
+ size_t count_in)
+ : spec(spec_in),
+ count(count_in)
+ {
+ }
};
using Mappings = std::vector<CountedSpec>;
std::map<vespalib::string, Mappings> _mappings;