Skip to content

Commit 1610b69

Browse files
committed
impl(bigtable): add string literal constructor to Bytes
1 parent a3f8ffb commit 1610b69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/cloud/bigtable/bytes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ class Bytes {
4444
/// An empty sequence.
4545
Bytes() = default;
4646

47+
/// Strips the null-terminator character from input bytes.
48+
explicit Bytes(char const* bytes) : bytes_(bytes) {}
49+
4750
/// @name Construction from a sequence of octets.
4851
///@{
4952
template <typename InputIt>

0 commit comments

Comments
 (0)