We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721fa4e commit c8fa0c1Copy full SHA for c8fa0c1
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::advance(buffer->begin(), from),
61
- std::advance(buffer->begin(), 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