Remove FMT_STATIC_THOUSANDS_SEPARATOR in favor of FMT_USE_LOCALE

This commit is contained in:
Victor Zverovich
2024-09-11 18:30:05 -07:00
parent a1d6f9a973
commit b90b4bc981
2 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -24,8 +24,6 @@
#if FMT_USE_LOCALE
# include <locale>
#elif !defined(FMT_STATIC_THOUSANDS_SEPARATOR)
# define FMT_STATIC_THOUSANDS_SEPARATOR ','
#endif
FMT_BEGIN_NAMESPACE
@@ -90,7 +88,7 @@ locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
struct locale {};
template <typename Char> struct numpunct {
auto grouping() const -> std::string { return "\03"; }
auto thousands_sep() const -> Char { return FMT_STATIC_THOUSANDS_SEPARATOR; }
auto thousands_sep() const -> Char { return ','; }
auto decimal_point() const -> Char { return '.'; }
};
template <typename Facet> Facet use_facet(locale) { return {}; }