diff options
Diffstat (limited to 'absl/strings/string_view.h')
-rw-r--r-- | absl/strings/string_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/string_view.h b/absl/strings/string_view.h index 25a4d1ed..a1b5a17b 100644 --- a/absl/strings/string_view.h +++ b/absl/strings/string_view.h @@ -342,7 +342,7 @@ class string_view { size_type rlen = (std::min)(length_ - pos, n); if (rlen > 0) { const char* start = ptr_ + pos; - std::copy(start, start + rlen, buf); + traits_type::copy(buf, start, rlen); } return rlen; } |