From 6a920477f9d10e755be6d00aea15ab8f70044edb Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Sat, 14 Dec 2019 12:55:54 -0700 Subject: [PATCH] Fix so works with MSC compiler also --- include/fmt/printf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fmt/printf.h b/include/fmt/printf.h index b8496b1c..9fa329b3 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -46,6 +46,9 @@ class printf_precision_handler { template ::value)> int operator()(T) { FMT_THROW(format_error("precision is not integer")); +#if FMT_MSC_VER + return 0; +#endif } }; @@ -166,6 +169,9 @@ 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 } };