Skip to content

Commit 34b9297

Browse files
committed
Fix for std::basic_string_view<char>::const_iterator not being convertible to const char * in Windows (issue #43)
1 parent e59d422 commit 34b9297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/hffix.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ class message_writer {
900900
\throw std::out_of_range When the remaining buffer size is too small.
901901
*/
902902
void push_back_string(int tag, std::string_view s) {
903-
push_back_string(tag, s.begin(), s.end());
903+
push_back_string(tag, s.data(), s.data() + s.length());
904904
}
905905
#endif
906906

0 commit comments

Comments
 (0)