Skip to content

Commit c010d41

Browse files
authored
feat(storage): Make absl::cord constructor public in write_payload.h (#15113)
1 parent 8bada09 commit c010d41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google/cloud/storage/async/write_payload.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class WritePayload {
5858
explicit WritePayload(std::vector<T> p)
5959
: impl_(storage_internal::MakeCord(std::move(p))) {}
6060

61+
/// Creates a payload from @p impl.
62+
explicit WritePayload(absl::Cord impl) : impl_(std::move(impl)) {}
63+
6164
/// Returns true if the payload has no data.
6265
bool empty() const { return impl_.empty(); }
6366

@@ -76,7 +79,6 @@ class WritePayload {
7679

7780
private:
7881
friend struct storage_internal::WritePayloadImpl;
79-
explicit WritePayload(absl::Cord impl) : impl_(std::move(impl)) {}
8082

8183
absl::Cord impl_;
8284
};

0 commit comments

Comments
 (0)