summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/bucket/bucket.cpp5
-rw-r--r--document/src/vespa/document/bucket/bucket.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/document/src/vespa/document/bucket/bucket.cpp b/document/src/vespa/document/bucket/bucket.cpp
index d2855c0b3a1..b79d45eee34 100644
--- a/document/src/vespa/document/bucket/bucket.cpp
+++ b/document/src/vespa/document/bucket/bucket.cpp
@@ -23,4 +23,9 @@ vespalib::asciistream& operator<<(vespalib::asciistream& os, const Bucket& id)
return os << "Bucket(" << id.getBucketSpace() << ", " << id.getBucketId() << ")";
}
+std::ostream& operator<<(std::ostream& os, const Bucket& id)
+{
+ return os << id.toString();
+}
+
}
diff --git a/document/src/vespa/document/bucket/bucket.h b/document/src/vespa/document/bucket/bucket.h
index 5aa9b360c42..44068e1c443 100644
--- a/document/src/vespa/document/bucket/bucket.h
+++ b/document/src/vespa/document/bucket/bucket.h
@@ -45,5 +45,6 @@ private:
};
vespalib::asciistream& operator<<(vespalib::asciistream&, const Bucket&);
+std::ostream& operator<<(std::ostream&, const Bucket&);
}