Skip to content
Snippets Groups Projects
Commit 77bac126 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

stringutils: string_view constructor adaptation for msvc compiler

Change-Id: If9f987af510e3d212710957d5678e0539ffa0ea4
parent 1261c039
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ operator+(const string_view& sv, const string& s)
using svmatch = match_results<string_view::const_iterator>;
using svsub_match = sub_match<string_view::const_iterator>;
constexpr string_view svsub_match_view(const svsub_match& submatch) noexcept {
return string_view(submatch.first, submatch.second - submatch.first);
return string_view(&*submatch.first, submatch.second - submatch.first);
}
inline bool
regex_match(string_view sv,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment