diff --git a/kernel/io.h b/kernel/io.h index 171f47a80..96b5bb55d 100644 --- a/kernel/io.h +++ b/kernel/io.h @@ -441,7 +441,8 @@ public: private: std::string_view fmt; bool has_escapes = false; - FoundFormatSpec specs[sizeof...(Args)] = {}; + // Making array at least size of one to make MSVC happy and strict to standards + FoundFormatSpec specs[sizeof...(Args) ? sizeof...(Args) : 1] = {}; }; template struct WrapType { using type = T; };