summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-10-24 12:36:05 +0000
committerTor Egge <Tor.Egge@oath.com>2017-10-24 12:36:05 +0000
commit823100d9d380c2749c466bdfe3ef640fa5d57cae (patch)
tree133a94daf7b87d14e0ef38584f2f754dcc6cdbab /document
parentbd6ea6c4e5e4a8348f3bab5ed932b40e20e55d44 (diff)
Add default constuctor for document::Bucket since vespalib::hash_map
requires that a default constructor exists for the key data type.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/bucket/bucket.cpp6
-rw-r--r--document/src/vespa/document/bucket/bucket.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/document/src/vespa/document/bucket/bucket.cpp b/document/src/vespa/document/bucket/bucket.cpp
index 841d0841381..d2855c0b3a1 100644
--- a/document/src/vespa/document/bucket/bucket.cpp
+++ b/document/src/vespa/document/bucket/bucket.cpp
@@ -5,6 +5,12 @@
namespace document {
+Bucket::Bucket() noexcept
+ : _bucketSpace(BucketSpace::placeHolder()),
+ _bucketId()
+{
+}
+
vespalib::string Bucket::toString() const
{
vespalib::asciistream os;
diff --git a/document/src/vespa/document/bucket/bucket.h b/document/src/vespa/document/bucket/bucket.h
index f6e44354834..5aa9b360c42 100644
--- a/document/src/vespa/document/bucket/bucket.h
+++ b/document/src/vespa/document/bucket/bucket.h
@@ -11,6 +11,7 @@ namespace document {
class Bucket {
public:
+ Bucket() noexcept;
Bucket(const Bucket&) noexcept = default;
Bucket& operator=(const Bucket&) noexcept = default;
Bucket(BucketSpace bucketSpace, BucketId bucketId) noexcept : _bucketSpace(bucketSpace), _bucketId(bucketId) {}