We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 93bcee2 + c8fa0c1 commit 34d1455Copy full SHA for 34d1455
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(std::next(buffer->begin(), static_cast<std::string::iterator::difference_type>(from)),
61
- std::next(buffer->begin(), static_cast<std::string::iterator::difference_type>(to)));
+ buffer->erase(buffer->begin() + from,
+ buffer->begin() + to);
62
}
63
64
static char* at_pos(std::string* buffer, std::size_t pos) {
0 commit comments