We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34d1455 + c9e9e86 commit ead6d6cCopy full SHA for ead6d6c
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