File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ namespace microfmt {
209209 }
210210 };
211211 for (; it != fmt_end; it++) {
212- if ((*it == ' {' || *it == ' }' ) && peek (1 ) == *it) { // parse {{ and }}}} escapes
212+ if ((*it == ' {' || *it == ' }' ) && peek (1 ) == *it) { // parse {{ and }} escapes
213213 it++;
214214 } else if (*it == ' {' && it + 1 != fmt_end) {
215215 auto saved_it = it;
@@ -270,8 +270,9 @@ namespace microfmt {
270270 return detail::format<sizeof ...(args)>(fmt.begin (), fmt.end (), {detail::format_value (args)...});
271271 }
272272
273+ // working around an old msvc bug https://godbolt.org/z/88T8hrzzq mre: https://godbolt.org/z/drd8echbP
273274 inline std::string format (std::string_view fmt) {
274- return detail::format<0 >(fmt.begin (), fmt.end (), {});
275+ return detail::format<1 >(fmt.begin (), fmt.end (), {detail::format_value ( 1 ) });
275276 }
276277 #endif
277278
@@ -280,7 +281,6 @@ namespace microfmt {
280281 return detail::format<sizeof ...(args)>(fmt, fmt + std::strlen (fmt), {detail::format_value (args)...});
281282 }
282283
283- // working around an old msvc bug https://godbolt.org/z/88T8hrzzq mre: https://godbolt.org/z/drd8echbP
284284 inline std::string format (const char * fmt) {
285285 return detail::format<1 >(fmt, fmt + std::strlen (fmt), {detail::format_value (1 )});
286286 }
You can’t perform that action at this time.
0 commit comments