commit | 59a5c74ed62be7068d3d3a1afa6261b676b8b03c | [log] [tgz] |
---|---|---|
author | Paul Wankadia <junyer@google.com> | Mon Aug 19 06:40:44 2019 -0700 |
committer | Paul Wankadia <junyer@google.com> | Mon Aug 19 13:51:50 2019 +0000 |
tree | 2430991d3c48edfd7f5c70777d6e427bea4cf640 | |
parent | 9d34a04b501a40fdcb5102b1ab989411c7dff905 [diff] |
Don't assume that iterators are just pointers. That is the case for re2::StringPiece and absl::string_view and happens to be the case for std::string_view in libstdc++ and libc++, but std::string_view in MSVC has iterators that aren't just pointers. Fixes #214. Change-Id: I99542a1b53f138228a54f3845df140465a71980d Reviewed-on: https://code-review.googlesource.com/c/re2/+/44230 Reviewed-by: Paul Wankadia <junyer@google.com>