File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace strtpl {
1414 // TYPED_LITERAL
1515 // See https://github.com/microsoft/STL/blob/17fde2cbab6e8724d81c9555237c9a623d7fb954/tests/std/tests/P0220R1_string_view/test.cpp#L260-L277
1616
17- template <typename CharT>
17+ template <class CharT >
1818 struct choose_literal ; // not defined
1919
2020 template <>
@@ -230,6 +230,7 @@ namespace strtpl {
230230 + braceidpattern + TYPED_LITERAL (CharT, " \\ }|" ) + escape + TYPED_LITERAL (CharT, " |" )
231231 + invalid + TYPED_LITERAL (CharT, " )" );
232232 }()};
233+
233234 const auto convert =
234235 [&delim = delimiter, first = s.begin (),
235236 &map](const std::match_results<typename std::basic_string_view<CharT, ST>::iterator>& mo)
@@ -249,6 +250,7 @@ namespace strtpl {
249250 }
250251 throw std::runtime_error (" Unrecognized group in pattern" );
251252 };
253+
252254 return regex_replace_fn (s, re, convert, flags);
253255 }
254256 }; // struct string_template
You can’t perform that action at this time.
0 commit comments