We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34d1455 commit c9e9e86Copy full SHA for c9e9e86
include/protozero/buffer_string.hpp
@@ -57,8 +57,8 @@ struct buffer_customization<std::string> {
57
protozero_assert(from <= buffer->size());
58
protozero_assert(to <= buffer->size());
59
protozero_assert(from <= to);
60
- buffer->erase(buffer->begin() + from,
61
- buffer->begin() + to);
+ buffer->erase(buffer->begin() + static_cast<std::string::difference_type>(from),
+ buffer->begin() + static_cast<std::string::difference_type>(to));
62
}
63
64
static char* at_pos(std::string* buffer, std::size_t pos) {
0 commit comments