Skip to content

Commit

Permalink
Fix for std::basic_string_view<char>::const_iterator not being conver…
Browse files Browse the repository at this point in the history
…tible to const char * in Windows (issue #43)
  • Loading branch information
enricodetoma authored and jamesdbrock committed Apr 18, 2024
1 parent e59d422 commit 3026761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/hffix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3026761

Please sign in to comment.