Apply coding conventions

This commit is contained in:
Victor Zverovich
2023-11-25 07:43:44 -08:00
parent 06f1c0d725
commit c3f9a73445
2 changed files with 24 additions and 24 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ namespace fmt {
template <> struct scanner<tm> {
std::string format;
scan_parse_context::iterator parse(scan_parse_context& ctx) {
auto parse(scan_parse_context& ctx) -> scan_parse_context::iterator {
auto it = ctx.begin();
if (it != ctx.end() && *it == ':') ++it;
auto end = it;
@@ -82,7 +82,7 @@ template <> struct scanner<tm> {
}
template <class ScanContext>
typename ScanContext::iterator scan(tm& t, ScanContext& ctx) {
auto scan(tm& t, ScanContext& ctx) const -> typename ScanContext::iterator {
auto result = strptime(ctx.begin(), format.c_str(), &t);
if (!result) throw format_error("failed to parse time");
return result;