Remove FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE

This commit is contained in:
Victor Zverovich committed 2024-09-11 18:30:05 -07:00
1 parent a1d6f9a973
commit b90b4bc981
2 files changed
+3 -9

No files matched your search

+2 -6
View File
@@ -2286,12 +2286,8 @@ struct is_output_iterator<
void_t<decltype(*std::declval<decay_t<It>&>()++ = std::declval<T>())>>
: std::true_type {};
#ifdef FMT_USE_LOCALE
// Use the provided definition.
#elif defined(FMT_STATIC_THOUSANDS_SEPARATOR) || FMT_OPTIMIZE_SIZE > 1
# define FMT_USE_LOCALE 0
#else
# define FMT_USE_LOCALE 1
#ifndef FMT_USE_LOCALE
# define FMT_USE_LOCALE (FMT_OPTIMIZE_SIZE <= 1)
#endif
// A type-erased reference to an std::locale to avoid a heavy <locale> include.