diff --git a/include/hffix.hpp b/include/hffix.hpp index 64bbf5f..490aee8 100644 --- a/include/hffix.hpp +++ b/include/hffix.hpp @@ -900,7 +900,7 @@ class message_writer { \throw std::out_of_range When the remaining buffer size is too small. */ void push_back_string(int tag, std::string_view s) { - push_back_string(tag, s.begin(), s.end()); + push_back_string(tag, s.data(), s.data() + s.length()); } #endif