Skip to content

Commit 9bfa1a0

Browse files
committed
♻️ Refactor
1 parent af32234 commit 9bfa1a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/strtpl/string_template.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)