Use C++14 friendly idiom in http2::HuffmanEncodeFast
PiperOrigin-RevId: 335138441
Change-Id: Ib6280472d6fa09a0dfbb85d7ca61992e82bbcbb2
diff --git a/http2/hpack/huffman/hpack_huffman_encoder.cc b/http2/hpack/huffman/hpack_huffman_encoder.cc
index 5cfe2c9..77b32bd 100644
--- a/http2/hpack/huffman/hpack_huffman_encoder.cc
+++ b/http2/hpack/huffman/hpack_huffman_encoder.cc
@@ -120,7 +120,7 @@
output->resize(final_size + 4, 0);
// Pointer to first appended byte.
- char* const first = output->data() + original_size;
+ char* const first = &*output->begin() + original_size;
size_t bit_counter = 0;
for (uint8_t c : input) {
// Align the Huffman code to byte boundaries as it needs to be written.