When formatting a tm struct with unicode support disabled, MSVC outputs the warning C4127 on this row
|
if (detail::use_utf8 && loc != get_classic_locale()) { |
this is a sample repro scenario
#define FMT_UNICODE 0
#include <fmt/core.h>
#include <fmt/chrono.h>
#include <ctime>
int main() {
auto now = std::time(nullptr);
fmt::format("[{:%Y-%m-%d %H:%M:%S}]", fmt::localtime(now));
return 0;
}
(compile with /W4)
When formatting a
tmstruct with unicode support disabled, MSVC outputs the warning C4127 on this rowfmt/include/fmt/chrono.h
Line 367 in 093b39c
this is a sample repro scenario
(compile with /W4)