Skip to content

Don't require std::locale in chrono.h when FMT_USE_LOCALE is 0 - #4921

Open
nebkat wants to merge 1 commit into
fmtlib:mainfrom
nebkat:chrono-no-locale
Open

Don't require std::locale in chrono.h when FMT_USE_LOCALE is 0#4921
nebkat wants to merge 1 commit into
fmtlib:mainfrom
nebkat:chrono-no-locale

Conversation

@nebkat

@nebkat nebkat commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

is_classic_ becomes constexpr and format_localized a no-op, so the facet calls compile away and neither tm_writer nor get_locale holds a locale. Output is unchanged; an -Os test program loses all 16 of its std::locale and time_put symbols and 9576 bytes.

is_classic_ becomes a compile-time truth and format_localized a no-op, so the
facet calls compile away and neither tm_writer nor get_locale holds a locale.
Output is unchanged; an -Os test program loses all 16 of its std::locale and
time_put symbols and 9576 bytes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant