Fix compilation with -fno-exceptions (#402, #405)

This commit is contained in:
Victor Zverovich
2018-01-20 17:10:14 -08:00
parent 3f24a38840
commit a1e7e4a768
2 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ class Locale {
Locale() : locale_(newlocale(LC_NUMERIC_MASK, "C", NULL)) {
if (!locale_)
throw fmt::system_error(errno, "cannot create locale");
FMT_THROW(fmt::system_error(errno, "cannot create locale"));
}
~Locale() { freelocale(locale_); }