diff --git a/include/fmt/printf.h b/include/fmt/printf.h index 9fa329b3..fb062804 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -45,10 +45,7 @@ class printf_precision_handler { template ::value)> int operator()(T) { - FMT_THROW(format_error("precision is not integer")); -#if FMT_MSC_VER - return 0; -#endif + throw format_error("precision is not integer"); } }; @@ -168,10 +165,7 @@ template class printf_width_handler { template ::value)> unsigned operator()(T) { - FMT_THROW(format_error("width is not integer")); -#if FMT_MSC_VER - return 0; -#endif + throw format_error("width is not integer"); } };