Simplify locale handling

This commit is contained in:
Victor Zverovich
2024-09-22 10:21:19 -07:00
parent 80c4d42c66
commit ff92223549
6 changed files with 38 additions and 51 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ using std::locale;
using std::numpunct;
using std::use_facet;
template <typename Locale>
template <typename Locale, enable_if_t<(sizeof(Locale::collate) != 0), int>>
locale_ref::locale_ref(const Locale& loc) : locale_(&loc) {
static_assert(std::is_same<Locale, locale>::value, "");
}