Skip to content

Commit

Permalink
I think MSVC is mistaken that (b ? "X" : "Y") is not of type
Browse files Browse the repository at this point in the history
`char const (&)[2]`, but allow for its beliefs nevertheless.
  • Loading branch information
devbww committed Jul 25, 2022
1 parent 8c27711 commit 363fcae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/cloud/internal/log_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DurationMessagePrinter
generator->PrintLiteral("\"");
generator->PrintString(absl::FormatDuration(d));
generator->PrintLiteral("\"");
generator->PrintLiteral(single_line_mode ? " " : "\n");
generator->Print(single_line_mode ? " " : "\n", 1);
}
};

Expand All @@ -63,7 +63,7 @@ class TimestampMessagePrinter
auto t = absl::FromUnixSeconds(seconds) + absl::Nanoseconds(nanos);
auto constexpr kFormat = "\"%E4Y-%m-%dT%H:%M:%E*SZ\"";
generator->PrintString(absl::FormatTime(kFormat, t, absl::UTCTimeZone()));
generator->PrintLiteral(single_line_mode ? " " : "\n");
generator->Print(single_line_mode ? " " : "\n", 1);
}
};

Expand Down

0 comments on commit 363fcae

Please sign in to comment.